Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Runtime error but not in IDE
Message
De
15/11/2001 19:20:28
 
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00581915
Message ID:
00582467
Vues:
26
Hi,

Thank for your advise.

I actually had three modal form. The second form is called from a class method
in the first form. The second form will called the third modal form. On exiting of the second form, it will give me the error of 'runtime error 5, invalid procedure or arugment'. This error does not happen in the IDE but only happen
when I run my application as a executable file.

Finally, I also observed that it sometime don't give the problem, sometime
do, very randomly.


Form1
=====
'do some processing
form2.show vbModal



Form2
=====

'do some work
gTest.DoWork
<--------- this part will give the above error on exiting of Form2

'do other processing


gTest class method
============

'do processing
Form3.show vbModal




>>Hi,
>>
>>My application when exiting from a modal form called from a class, will
>>give runtime error '5', invalid procedure called or arugment.
>>
>>However, this error does not happen when debugging it in the IDE.
>>I am loss, please help and advise.
>>
>>I am using VB 6.0 Entreprise (SP5) with Windows 2000 Professional with service pack 2
>
>Can you reproduce the error with a small number of lines (that you can paste here) ? Very often, adding some DoEvents will help in that kind of bug which works in IDE but not in full speed.
Best Regards
Virusim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform