- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dear all,
I'm developing a wpf application with a collection of methods in order to handle my dwg files.
I have to tell you the true, I'm quite satisfied, my App is reaching really a good level and now I can do in minutes what I did in days... For these reasons I can only thank this Forum and all of you are helping me.
Now, let's go to the matter. All works well, but if I open and close my method in the same Autocad session something goes wrong and I have to close the Autocad through win10 task manager.
My suspicious are going to the way I open and close my wpf window. Here my opening method:
[CommandMethod("MYACADWPF", CommandFlags.Modal)]
public void MyACADUtilitiesWPF()
{
Document doc = Application.DocumentManager.MdiActiveDocument;
Editor ed;
if (doc != null)
{
ed = doc.Editor;
MyAcadWinGUI acadWinGui = new MyAcadWinGUI();
//AcAp.ShowModalDialog(acadWinGui);
acadWinGui.Show();
}
}
And for closing I just use the Close cross in the app's title window.
Have I to catch the closing event and dispose something?
All my methods are in Using statement (transaction and database), all dwg files are opend as OpenSideDatabase. and all tasks are in background.
Thanks to all
M.
Solved! Go to Solution.