Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LOMESSAGE is not an object
Message
 
À
25/02/2004 09:40:39
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00880413
Message ID:
00880690
Vues:
18
>>>>When the compiled .exe runs, I get an error message that says:
>>>>"LOMESSAGE is not an object" but all is well when I run it from within vfp environ (command propmt)
>>>>
>>>>the code is as follows and was always working till today. I've rebuilt the project to no avail. I wonder what the cause is?
>>>>
>>>> loMessage = newobject("Animation", "Animation.vcx", "", ; && Now use Daniel's vcx class instead
>>>> 'Saving record...', ;
>>>> 'RECORD SAVE IN PROGRESS', ;
>>>> 'fish.avi')
>>>
>>>At this point, just try to check whether the object was successfully instantiated. Maybe just messagebox(loMessage.name). If it breaks there, well, you may have some error in that class and it didn't instantiate - or the classlib wasn't included in the project.
>>>
>>>> set message to ' Saving record...'
>>>> loMessage.show()
>>>> for t= 1 to 21000000
>>>> next
>>>>retu
>>
>>I did as u said, put the test message there and it bombed out before it was displayed. It does display ok at the cmd prompt. I've even used a backup copy of the class. Doesn't rebuilding the project supposed to solve it?
>
>Is animation.vcx in the project at all? If not, then add it (I'm not really sure the project manager analyzes newobject() and similar calls).
>If it's there, you may need to run your exe in a debugger, making sure you have no path at all before starting. You may even need to rename your development directory, just to make sure the classes won't be found elsewhere but in the exe itself. Then trace through the creation of the animation object and see why doesn't it return an object.

Dragan, see my recent post to Nadya, this is CRAZY stuff!!!!!!!!!!!!
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform