

Registered forum members do not see this ad.
Hello: I have a window application created using visual studio 2005 and .net api.
It's all been working great...till I came in this morning and got the following error
that occures when trying to call a custom command. This command has been working for a very long time and nothing has changed in it.
Here's the bug:
CallbackOnCollectedDelegate was detected
Message: A callback was made on a garbage collected delegate of type 'acmgd!Autodesk.AutoCAD.Runtime.CommandClass+Comma ndThunk+CommandInvokeHandler::Invoke'. This may cause application crashes, corruption and data loss. When passing delegates to unmanaged code, they must be kept alive by the managed application until it is guaranteed that they will never be called.
I tried to turning off callbackonCollectedDelegate. I went to debug>exceptions and I unchecked callbackonCollectedDelegate. After, I now get this error:
Unhandled e0434f4dh Exception @ 7c812afbh.
Any help is truly appreciated.
Thanks,
Rene


Registered forum members do not see this ad.
I resolved this issue. Fortunatly, when i was logging into the application, I noticed this message in the command prompt:
Cannot load assembly. Error details: Autodesk.AutoCAD.Runtime.Exception:
eDuplicateKey
I googled this error and it said it occurs when mulitple same commands exist. I looked over my code and sure enough, I had a custom command that was in twice by accident. Removing this resolved the issue.
thanks,
Proctor
Bookmarks