General information
Category:
Third party products
Title:
XFRX and Fatal error: Exception code=C0000005
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only