Author Topic: Some AutoCAD classes entities as Source for PropertyGrid control = Fatal Error  (Read 3400 times)

0 Members and 1 Guest are viewing this topic.

Andrey Bushman

  • Swamp Rat
  • Posts: 864
Hi All!

Windows XP SP3 x86 Rus, AutoCAD 2009 SP3 x86 Rus, .Net Framework 3.5 SP1, MS Visual Studio 2010.

I want use PropertyGrid control in window my AutoCAD plagin's for browse drawing database entities. But it is big problem in AutoCAD:
I have always fatal error for some AutoCAD entities, when these used as ObjectSource property for PropertyGrid.

For example (fatal source): Database, BlockTable, BlockTableRecord, Circle and many other!

Video here and Code source here (MS VS 2010, AutoCAD 2009 SP3 x86).

Screen for quick understanding:


« Last Edit: July 05, 2010, 01:23:06 PM by Hwd »

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8690
  • AKA Daniel
I could not see the source, that site must be blocked from China  :|

Andrey Bushman

  • Swamp Rat
  • Posts: 864
I could not see the source, that site must be blocked from China  :|
I change link. Check now.

fixo

  • Guest
I could not see the source, that site must be blocked from China  :|
Check your post,
It's already in there

~'J'~

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8690
  • AKA Daniel
I don't really see anything wrong. I would try committing your transactions instead of letting them abort. I would also try locking each document as you iterate though.

Andrey Bushman

  • Swamp Rat
  • Posts: 864
I don't really see anything wrong. I would try committing your transactions instead of letting them abort. I would also try locking each document as you iterate though.
I was attempt set property of PropertyGrid in try/catch - exceptions not occur. But after exit from try-block, I have fatal errors. Now I use binding in xaml-code. But problem still occur.
My theme dub there.

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8690
  • AKA Daniel
Ok, as Tony mentioned, if the treeview tries to access the property of a DBObject while it's not opened for read,  Kaboom.