Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object reference disappearing
Message
De
10/09/2012 16:01:32
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Divers
Thread ID:
01552675
Message ID:
01552679
Vues:
54
J'aime (1)
>I have a very strange error occuring at one installation. My software is installed in over 2500 locations right now, but I'm only getting reports of this from one location.
>
>Basically, I have some code that is deigned to display a Yes/No prompt on the screen by creating an instance of a message box that I have created. The function parses some parameters, instantiates an object, and then sets various properties of the that object based on the parameters. In one location, I am getting halfway through the code that sets the properties of the message form, and then errors out with an "oTouchMessage is not an object" error. I enabled detailed logging including a memory dump and it shows that the value of my object has reverted to null. This is very odd because it happens after I have set 3 or 4 different properties of the object in code. It doesn't happen every time, but it always happens at the same line of code if it is going to happen.
>
>Has anyone ever seen a situation where an object instance randomly reverts to null?

If it's just one workstation at one site I'd check a few basics:

- System and Application Event Logs
- File system integrity i.e. CHKDSK C:
- Antivirus settings
- Clean out temp files folder
- Possibility of corrupted EXE or other system files

Is there any code unique to that site?
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform