I'm using Editor.GetPoint on AutoCAD 2010 x86 SP2. Sometimes, I've got this exception:
System.Runtime.InteropServices.SEHException: Un composant externe a levé une exception.
à acedGetPoint(Double* , Char* , Double* )
à Autodesk.AutoCAD.EditorInput.PromptPointOptions.DoIt()
à Autodesk.AutoCAD.EditorInput.Editor.DoPrompt(PromptOptions opt)
à Autodesk.AutoCAD.EditorInput.Editor.GetPoint(PromptPointOptions options)
And I finish with an AutoCAD message: FATAL ERROR : Out of memory - Application terminated (translated from French).
The calling code is like this (called from a loop):
var ed = Application.DocumentManager.MdiActiveDocument.Editor;
PromptPointOptions ppo = new PromptPointOptions(message);
if (useBasePoint) {
ppo.BasePoint = basePoint.TransformBy(ed.CurrentUserCoordinateSystem.Inverse());
ppo.UseBasePoint = true;
ppo.UseDashedLine = true;
}
PromptPointResult ppr = ed.GetPoint(ppo);
It happens only on some computers. We are thinking of a bug with the graphics card (NVidia Quadra FX 1700). Does somebody already have this kind of problem?
Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr