Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Runtime error but not in IDE
Message
 
To
15/11/2001 19:20:28
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00581915
Message ID:
00582510
Views:
29
this scenario is not giving me any problems! The problem is elsewhere. We need to see more code.


>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.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform