Fatal Error: Unhandled Access Exception in AutoCAD C#.NET plugin -
I am writing a plugin that should read data from a binary file at startup. When starting, it should read the data from the file and ask the user to select a location to display the data in the table. The plug-in should be minimized as a program and then ask the user to select that point in the AutoCAD command line, where the table should be
WindowsDoors f = ( WindowsDoors) WindowsDoors.ActiveForm; F.WindowState = FormWindowState.Minimized; Pr = ed.GetPoint ("Enter the table entry point:");
However, when trying to execute the midline code shown to reduce the form, AutoCAD crashes with a dialogue box saying, "Incorrect error: 206206 on ADH Unread access violation 0x0000 exception "
I suspect that I need to programmatically correct the Windows DOS F object with a programmatic mess, but I'm not sure If I am right or do, then if I
from within a form, if you are on the editor If you want to go back, you will need to call
Editor.StartUserInteraction (this)
Where it is active it will hide the form and return the focus to AutoCAD. See a sample at
Comments
Post a Comment