Do you have any specific steps that I can follow, to reproduce the fatal error?
Lately, all I have to do is netload, type in "Partmon" command in AutoCAD,
open drawing with several part groups in it (SDI = 0) and then exit AutoCAD, KaBoom.
That's a fairly large project and more than I expected. Whilst I am getting my head around it, I would suggest extracting portions of it to separate projects and testing them individually to see if you can nail down the error.
That was my next step. I may have to strip it down to the main form and try building it back up.
I know I'm running before I can walk here but I've taken time to do research and have tested everything
before adding more to the code. Somehow this error sort of snuck up on me.
Thanks for the tips, we're using a previous release .dll of this (which doesn't crash, AFAICT)
this new version is pretty much complete to what we want it to do so I'd like to get it up & running.
Always something huh?
First thing:
Group grp = (Group)trans.GetObject(oid, OpenMode.ForRead) as Group;
You don't need a direct cast here, because you're using 'as' - stick to one or the other.
This was my bad, editing code without coffee :ugly:
Ah, that answers a question I asked previously.
Thanks again.
*Edit: At least you all didn't say "what a mess, you call that code?"
kinda reinforces that I'm at least on the right road.