Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a NewObject()
Message
From
13/12/2001 16:52:13
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
Creating a NewObject()
Miscellaneous
Thread ID:
00594103
Message ID:
00594103
Views:
46
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
Map
View

Click here to load this message in the networking platform