Message 1 of 3
VB.net debugging when prompt pause
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
My program tools are VB.net express 2005 with ACAD MEP 2008.
I want to debug a program with GetSelection or GetPoint where the program will pause waiting for user input. The ACAD MEP 2008 will stop running with an "FATAL ERROR: unhandled exception" error when debugging steps to the GetSelection/GetPoint function.
I have no issue when I load the released .dll into ACAD and run. The program like this:
Public Sub Cmd1() ' This method can have any name
' Type your code here
Dim ed As Editor = Application.DocumentManager.MdiActiveDocument.Editor
Dim pntoption As New PromptPointOptions("Please pick a location as the center of the curves")
Dim pntresult As PromptPointResult
Dim Opts As New PromptSelectionOptions()
Opts.SingleOnly = True
Opts.MessageForAdding = "Select a curve entity"
Dim res As PromptSelectionResult = ed.GetSelection(Opts)
If res.Status = PromptStatus.Error Then
Return
End If
Dim SS As Autodesk.AutoCAD.EditorInput.SelectionSet = res.Value I search in Discussion Groups seem nobody encountered this problem. The error also happen in ACAD MEP 2010.
Hope some know how to get arround.
Thanks.