Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error in Building EXE when reportlistener used
Message
De
29/09/2006 12:17:06
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Error in Building EXE when reportlistener used
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01158182
Message ID:
01158182
Vues:
73
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
Fil
Voir

Click here to load this message in the networking platform