Hi Krishna,
Thanks for replying. That link provides some useful information. I think
the problem goes a little deeper than the solutions offered by that blog,
however. I don't believe the error is in my code - I think it has something
to do with the AutoCAD managed dll's. I did a little experimentation, and I
think I tracked down the problem (but not the solution). To reproduce this
issue reliably, do this:
Create a brand new VB class library project.
Create a blank form in this project
Create a user control in this project (but don't add or change any code)
Build the project.
Add the user control to the form.
Close the form and re-open it. It should open without a problem.
Close the form again.
Add a reference to acmgd.dll (2006)
Open the form again.
The designer throws an exception.
Remove the reference to acmgd.dll
Close the form and reopen it again.
Everything is back to normal.
If you'd prefer, I can submit a DHO ticket on this...
Jon
wrote in message news:4855100@discussion.autodesk.com...
Hi Jon,
I have seen this problem with dockingPalette SDK sample. I thought I messed
up VS generated code, which I could have because I was trying to add a
custom combo box on the palette. I found a blog that talks about this -
http://weblogs.asp.net/rweigelt/archive/2003/09/04/26262.aspx
I didn't try to fix this, so if you found a way, please let me know!
Krishna Kalvai
DevTech
Autodesk