Proctor Posted June 11, 2012 Share Posted June 11, 2012 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+CommandThunk+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 Quote Link to comment Share on other sites More sharing options...
Proctor Posted June 12, 2012 Author Share Posted June 12, 2012 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.