Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 6 Error on exit of application
Message
 
À
27/10/1998 12:54:30
Bob Lucas
The WordWare Agency
Alberta, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00148170
Message ID:
00151128
Vues:
25
>i don't think this problem is entirely related to dcom95. When I installed VFP6 from visual studio, I was required to install the dcom95 update. I still get lots of of C00000005 errors.
>
>I think this is occuring during the release of objects. I have a problem with an application that produces the error in runtime but not in development (same machine). I tracked it down to a clear all. I figured, why do I need a clear all when I exit in runtime? so I commented out the clear all when running runtime. No more errors.
>
>I also got the error at other times. When I tracked it down to the method that was running, I put explicit RELEASE statements that would release any object references. Normally, when a variable goes out of scope, the object it references is released. It seems that sometimes this automatic releasing of objects is causing the error. What is really difficult is that it won't happen with debug on (at least not all the time).
>
>My experience seems to suggest this error is created almost exclusively when objects are being released after their last reference has gone out of scope. I don't want to have to explicitly release all of my local variables but that seems to be what fixes the problem.
>
>I think it may help to explicitly define any variables used. I know I should, and I don't always do this, but it seems that by issuing LOCAL or PRIVATE before setting the variable makes a difference.


Some more good info for me to pass to my fellow programmers here. I went to the machine I was having a problem with and installed the dcomm upgrade and that took care of it this time, but I will make a mental note of these tips for later when it happends again, which I have an idea it will.

Thanks for your time I know it is valuable..
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform