Information générale
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Error in Building EXE when reportlistener used
Versions des environnements
Network:
Windows 2003 Server
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement