Perifanos Posted March 24, 2013 Posted March 24, 2013 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 Quote
fixo Posted March 24, 2013 Posted March 24, 2013 (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 March 24, 2013 by fixo code added Quote
Perifanos Posted March 25, 2013 Author Posted March 25, 2013 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... Quote
fixo Posted March 25, 2013 Posted March 25, 2013 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 Quote
Perifanos Posted March 25, 2013 Author Posted March 25, 2013 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 Quote
Recommended Posts
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.