General information
Category:
Third party products
Title:
Creating a NewObject()
I'm using VFP7, WC401 and VooDoo.
I'm having a performance problem when issuing a:
loPage.NewObject('txt_from','WebTextbox','voodoo.prg', 'myapp.app')
If following the voodoo examples exactly, from the voodoo tutorial, all those examples run very fast. All the prgs, etc.. are all in the main EXE file that the tutorial has you create.
But I have a case where my web connect EXE makes a call to a .APP. My .APP contains the WC process() code etc... In other words, instead of doing DO voodooprocess.prg with THIS, I issue DO myapp.app WITH THIS.
If I try a simple voodoo example in myapp.app, the request runs much slower than if the request was made to a prg inside of the wc main .EXE file.
I used the Coverage profiler to see where the slow down is at in my .app. It appears that when I issue a:
loPage.NewObject('txt_from','WebTextbox','voodoo.prg', 'myapp.app')
in myapp.app, this process takes on average 3 seconds of each newobject() call.
However, if the request is made to a prg that is compiled in the main .EXE, the the newobject() call is made at sub second speed each time.
I looked at the VFP help for newobject(). I fill in the parameters so that my app knows where to look for the code.
Why does my .app run so much slower?
Thanks,
Jerryt
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