General information
Category:
Coding, syntax & commands
>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?
Randomly: nope. But if the object is activeX: strange, surprizing: yes, more often than vanilla vfp..
if the object is vanilla vfp add a complex watch expression to see where vartype(oMissing) changes to "X"
before the error-throwing line is reached - that is if you don't set/object access on each line.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only