switching to modelspace, Acad crashes

switching to modelspace, Acad crashes

Anonymous
Not applicable
217 Views
2 Replies
Message 1 of 3

switching to modelspace, Acad crashes

Anonymous
Not applicable
I have the following code in my app:

AcDbLayoutManager *pLayout=acdbHostApplicationServices()->layoutManager();
pLayout->createLayout("dcsLayout",layoutId,layoutBlkRecId);
pLayout->setCurrentLayoutId(layoutId);

and all is fine and dandy. Later I call this section of code to return to
modelspace:

acdbHostApplicationServices()->workingDatabase()->setTilemode(1);

and Acad crashes with eWasOpenForWrite. What was open for write? I don't
think I have anything to close...

Thanks.
0 Likes
218 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
nevermind...
0 Likes
Message 3 of 3

Anonymous
Not applicable
close the newly created layout.
Each newly created db object is opened for write and you must close it after appending to some table etc...
Chudo
0 Likes