Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C0000005 on form startup
Message
From
18/07/2003 06:25:33
 
 
To
18/07/2003 06:05:24
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00811055
Message ID:
00811429
Views:
11
Thanks for answering to everyone!

But I did little more research, and things got rather interesting...

I have a public application object in my application that has doform() method. This method is used to open forms thoroughout the system. Basically this method just issues a DO FORM command to open form with parameter given to the method.

I coded a little prg that randomly opens and closes different forms in a loop, repeating 100 times. First, by a mistake, I used DO FORM command directly (not the doform() method) in this prg. I executed this .prg several times and NO crashes. Then I checked the code and noticed it used DO FORM instead of doform() method. I "corrected" it to use the doform() method. Then, almost with every test, I got those C0000005 errors.

Additionally, sometimes when crashing code was executed, I saw "Insufficient stack space" error instead of C0000005, and then program died.

So, I have decided to not to use doform() method anymore. For now, I can get same functionality with DO FORM command. But I would like be able to use this doform() method, because it can give more control on form startups in the future.

So if you have any ideas why this is happening, I would like to know... Could it be that somehow stack overflows because of more complex method call sequence? Sounds little unlikely to me...

But now I'm glad that I got this working... :)



>hi tapani!
>
>i don't know if this helps but we had a similar problem to yours last year. when a form was destroyed a C0000005 was raised.
>finally we found that Scriptblocking of Norton Antivirus caused this problem.
>
>HTH
Previous
Reply
Map
View

Click here to load this message in the networking platform