Click to See Complete Forum and Search --> : Surprising error
shree
March 29th, 2001, 06:48 AM
Today, I got an error
Method '~' of object '~' failed
It had a long negative number and couldn't be trapped. Does it make sense?
Cimperiali
March 29th, 2001, 09:07 AM
I got same error with non-registered dll or activex.exe. Also it occurred with remote component on machines with which I did not have enough permission on login, and with machines where RPC protocol was not active.
Hope this help
Cesare Imperiali
Special thanks to Lothar "the Great" Haensler. Come back soon, you Guru.
shree
March 29th, 2001, 10:24 AM
My program also uses a DLL written in C++. When I tried to register it using regsvr32, it failed, telling that the dll was corrupt. But when I copied the DLL to the System folder, the program worked, and in one rare case, gave that error. I couldn't trap the error from the IDE. When I compiled the program and ran the EXE, the program just terminated at that point, without any notification.
How can I solve it?
Daniel Andersson
March 30th, 2001, 11:16 AM
Since you have a dll written in c++ I suppose that you declare the function you are using somewhere (often done in a separate module or at the Declarations level of any vb file). In that case you can add a path to the dll if it is not in the system directory (where it really should be).
But it is surprising that you get the error even if the dll is in the system dir. The ~ character reminds me of the destructor function of a c++ class... If you have written the dll yourself or have got access to the source code I would recommend a debugging session with Visual C++ or another C++ IDE.
-----------------------
Daniel Andersson
shree
March 30th, 2001, 06:46 PM
It works nicely inmost of the cases. But in the case of one file (it is quite large), I get that error. I don't know why. Is there an easy way to debug through DLLs?
Cimperiali
April 4th, 2001, 05:48 AM
Since you use a C dll, I think you should debug it with Vc debugger. Sorry, I do not know how (I am just a Vb developer)...
Special thanks to Lothar "the Great" Haensler. Come back soon, you Guru.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.