Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error in Building EXE when reportlistener used
Message
From
29/09/2006 12:17:06
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Error in Building EXE when reportlistener used
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01158182
Message ID:
01158182
Views:
72
Hi All,

I use reportlistener for my reports and i have this piece of code in my prg to run reports

procedure repoDemo

lparameters tcLanguage, tcForm, tcDest, tcPrompt, tcCall, tcTitle, tnFlags

local oPrevCont, oRepListner, lcLanguage

oPrevCont = null

wait window _reportpreview

do (_reportpreview) with oPrevCont

oRepListner = createobject("ReportListener")
oRepListner.listenertype = 1
oRepListner.previewcontainer = oPrevCont

report form (tcForm) object oRepListner

release oPrevCont
release oRepListner
endproc && repodemo

i use the windows default ReportPreview Container and ReportListener Class.

i run my exe from the VFP IDE, we have this facility to run the Exe in the VFP IDE and i can come back to the IDE from the exe. when i run a report and make changes to any of my progrmas and try to rebuild the exe with the same name. i am getting an error

" OBJECT FILE exe path IS IN USE AND CANNOT BE REMOVED FROM THE MEMORY"

when i comment

report form (tcForm) object oRepListener

its working fine, i doubt the _ReportPreview points to a APP and may be this app is holding the exe in memory.

kindly help me in finding a solution.

will this create any memory problems when continues run. my application is a 24X7X365 hospital application.

Thanks in advance

Venkatram
Next
Reply
Map
View

Click here to load this message in the networking platform