Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C0000005 on form startup
Message
De
18/07/2003 06:25:33
 
 
À
18/07/2003 06:05:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00811055
Message ID:
00811429
Vues:
12
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform