Jump to content

Debug ger detected - Please close it down and restart! Windows NT users:Please note..


Recommended Posts

Posted

Hello all,

 

I am trying to create a simple dll to call it from acad2010 and present a hello world message but things are getting funky...

 

code:

 

Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.DatabaseServices

Public Class HelloWorld

   <CommandMethod("HelloWorld")> _
   Public Sub MyMethod()
       Application.ShowAlertDialog("Hello World from VB.NET!")
   End Sub



End Class

 

When I try to compile (run) the class, I get the following annoying message:

 

Debug ger detected - Please close it down and restart!

 

Windows NT users:Please note that having the WinIce/SoftIce service installed means that you are running a debug ger!

 

 

What does this mean and most off all what should I do?

 

Note:

I have followed (to the word) what is presented in the following url:

http://www.scribd.com/doc/40736747/AutoCAD%C2%AE-NET-Basics-Part-I

 

Windows XP

VisualStudio 2010.

 

BR

Posted (edited)

Did you set in Project Properties window Copy Local To False for

acmgd.dll and for acdbmgd.dll ?

Just a guess

I would use in my code this way, say your Project name is MyHelloWorldPlugin

 
Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.DatabaseServices
Imports Autodesk.AutoCAD.EditorInput
Imports System.Runtime.InteropServices
<Assembly: CommandClass(GetType(MyHelloWorldPlugin.HelloWorld))> 
Namespace MyHelloWorldPlugin
Public Class HelloWorld
<CommandMethod("HelloWorld")> _
Public Sub MyMethod()
Application.ShowAlertDialog("Hello World from VB.NET!")
End Sub
End Class
End Namespace

Edited by fixo
code added
Posted

nop, exactly the same message.

Something else is bothering the system.

 

Maybe it has to do with a driver or an installed codec(!) or I dont know what...

 

But it is really very frustrating for a small portion of code to produce such a mess.

 

I really dont get it.

 

We abbandoned procedural programming and went to OOP in order to have better structured software, that would not produce hell in conflicts and now, it seems that you write one line of code and everything starts screeming...

Posted

Sorry I can't reproduce same error on my end,

coz I'm using class library project on A2010(eng.) 32-bit, Win7,

you explain all your settings a bit more, perhaps somebody else

have a got this issue :oops:

Posted

I know. You cannot reproduce because you havent got my configuration regarding divx encoders or other drivers...

Anyhow, the system is

Windows XP Sp3 2GB RAM

Acad2010

VS2010 Ultimate

 

BR

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...