-
this is the weirdest thing i came across
here is the desription
======================
when i complile my program and run it on this machine (it has vb on it)
evrything works fine
when i take my code and run it on another machine
i get "invalid procedure or call" error
on following
Code:
Load frmDispute
frmDispute.Show
Call frmDispute.NewDispute
the error is on the call for precuder
yes the procedure is public..
now if i make it te following
Code:
Load frmDispute
frmDispute.Show
msgbox "this will prevent the error"
Call frmDispute.NewDispute
i wont get an error on that if i put a simple msgbox before the call of the procedure
anyone ever came across this?
thanks
-
Yes, I have had that happen before. I had to recompile the entire project.
Cheers,
P.
-
what do yo mean recompile the project
i keep taking FRESH .exe to the other computer
it works with a messagebox before it
yet it crashes if there is no message box
so how do i fix
grr this i hate
-
Try putting
DoEvents
where you have the Msgbox line; eg;
Code:
Load frmDispute
frmDispute.Show
DoEvents
Call frmDispute.NewDispute
that might help.
-
well without .show it worked to a certain point
then i started having problems since some of my procedures assing other values to objects in that form.. so that didn't work
BUT
i used DoEvents
as suggested by Buzby and everything seems to work fine now
THANK YOU so much
so the keytrick is doevents (for those that need it)
-
Very annoying
I've been getting the same error message. My application works on most machines but on a small number I get this error message.
If anyone has any idea at all whats causing it, I'd be very grateful!
-
since doevents fixed the problem
i am guessing the machine thats causing errors doesnt finish everything in the queue before it does that and causes the error
but the doevent fixes it..