Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XFRX and Fatal error: Exception code=C0000005
Message
From
03/07/2008 12:44:55
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
XFRX and Fatal error: Exception code=C0000005
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01328752
Message ID:
01328752
Views:
337
Hi all
I buy XFRX and I’m facing the “Fatal error” in my VFP application in this situation.
I have a print class where I can choose the report I want to print, select a printer, number of copies… tha runs well since a long time ago.

Now I inserted your code like this one below in a Command Button and it runs ok, the problem occurs when I “RELEASE THISFORM” clicking a button… "Fatal error: Exception code=C0000005"

Any ideas would be great.
Thank’s in advance,
NPedro

********************************************
**** command button code***************

LOCAL lcreport, loSession, lnRetval, lcPageCaption

SET CLASSLIB TO xfrxlib\xfrxlib, HOME()+"ffc\_reportlistener"
SET PATH TO xfrxlib

toViewer = CREATEOBJECT("frmMPPreviewer")
toViewer.iTool = 2 && we are using the "fake" toolbar
tnReportType = 1
toViewer.setLanguage("pt")
toViewer.iBook = 2
toViewer.iEmail = 1
toViewer.VISIBLE = .f.
IF VERSION(5)>=900
loSession=EVALUATE([xfrx("XFRX#LISTENER")])
ELSE
loSession=EVALUATE([xfrx("XFRX#INIT")])
ENDIF
lnRetval = loSession.SetParams(,,,,,,"XFF")
IF lnRetval = 0
REPORT FORM ("REPORTS\CLIENT1.frx") OBJECT loSession
ENDIF
LOCAL loXFFDocument
IF VERSION(5)>=900
loXFFDocument = loSession.oxfdocument
ELSE
loXFFDocument = loSession.finalize()
ENDIF
toViewer.previewXFF(loXFFDocument, "Astuto")
IF toViewer.VISIBLE = .F.
toViewer.SHOW(1)
ENDIF
RELEASE frmMPPreviewer
RELEASE lcreport, loSession, lnRetval, lcPageCaption, _xfrx_wordwrapalgorithm, __xfret, loxffdocument

********************************************
********************************************
Next
Reply
Map
View

Click here to load this message in the networking platform