Debugging ARX applications from .NET

Debugging ARX applications from .NET

Anonymous
Not applicable
541 Views
6 Replies
Message 1 of 7

Debugging ARX applications from .NET

Anonymous
Not applicable
Hi all,

I am transferring from VBA to ARX in C#.NET. Everything works great, except Debugging - I have a bit older computer, and you probably understand, that I don't want to wait for ACAD to load, each time I want to debug.
Is there any other way, you could debug (so that ACAD would be open all the time) - like VBA. I've read about adding new project to the solution in VS, that would create link between my project and ACAD.

I am using ADT 2006, on Win XP pro and VS.NET 7.1.

Best regards, Ivo
Debugging ARX applications from .NET
0 Likes
542 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable
If you are using C# it is not an ARX application. There are a lot of people refering to programs written with the new .NET API as ARX applications. Maybe if Autodesk created a disscusion group for the .NET API it would help with some of the confusion.
Regards - Nathan
0 Likes
Message 3 of 7

Anonymous
Not applicable
Search down. Someone posted this solution recently. "jonz_si" wrote in message news:9823102.1112099003701.JavaMail.jive@jiveforum1.autodesk.com... > Hi all, > > I am transferring from VBA to ARX in C#.NET. Everything works great, > except Debugging - I have a bit older computer, and you probably > understand, that I don't want to wait for ACAD to load, each time I want > to debug. > Is there any other way, you could debug (so that ACAD would be open all > the time) - like VBA. I've read about adding new project to the solution > in VS, that would create link between my project and ACAD. > > I am using ADT 2006, on Win XP pro and VS.NET 7.1. > > Best regards, Ivo > Debugging ARX applications from .NET
0 Likes
Message 4 of 7

Anonymous
Not applicable
Check out "Attaching to a Running Program" in the help menu. Might be helpful. gl "jonz_si" wrote in message news:9823102.1112099003701.JavaMail.jive@jiveforum1.autodesk.com... > Hi all, > > I am transferring from VBA to ARX in C#.NET. Everything works great, > except Debugging - I have a bit older computer, and you probably > understand, that I don't want to wait for ACAD to load, each time I want > to debug. > Is there any other way, you could debug (so that ACAD would be open all > the time) - like VBA. I've read about adding new project to the solution > in VS, that would create link between my project and ACAD. > > I am using ADT 2006, on Win XP pro and VS.NET 7.1. > > Best regards, Ivo > Debugging ARX applications from .NET
0 Likes
Message 5 of 7

Anonymous
Not applicable
I tried everything, but it doesn't seem to work.

I will again try to explain, what and why I am trying to achieve.

ADT on my computer takes around 3 minutes to start, so every time I want to debug or test something, I need to start ADT first, then (net)load. Once, you load the application, it can't be unloaded, and also you can't stop the debugger, recompile and load it again. The only solution is, to close ADT (ACAD).

This was much faster in VBA. I know, that the same problem exists in ObjectARX, but at least you have "unload" option - I've heard, that it doesn't work as it should.

Few years ago, I created DLL in VB6, and it was possible to debug it with ACAD, that ran all the time (I had to add new project to the solution, and I need to define it as startup. Then I had to find ACAD - GetObject - and pass it to DLL).
Now I want to know, if something similar is possible also in .NET?

If anyone knows different solution, or if you know where to find it, would you be kind enough to share it?

With best regards, jonz
0 Likes
Message 6 of 7

Anonymous
Not applicable
Jonz, Sorry I couldn't help. Even with a fast computer I just leave my app running and close and open the drawing to unload the dll. There is no netunload. One of the Brains should have an answer. Tony,Mike,Owen, otheres?? If you don't get one Norman in the VBA group is vs.net savy. Paul "jonz_si" wrote in message news:1789989.1112646363440.JavaMail.jive@jiveforum1.autodesk.com... >I tried everything, but it doesn't seem to work. > > I will again try to explain, what and why I am trying to achieve. > > ADT on my computer takes around 3 minutes to start, so every time I want > to debug or test something, I need to start ADT first, then (net)load. > Once, you load the application, it can't be unloaded, and also you can't > stop the debugger, recompile and load it again. The only solution is, to > close ADT (ACAD). > > This was much faster in VBA. I know, that the same problem exists in > ObjectARX, but at least you have "unload" option - I've heard, that it > doesn't work as it should. > > Few years ago, I created DLL in VB6, and it was possible to debug it with > ACAD, that ran all the time (I had to add new project to the solution, and > I need to define it as startup. Then I had to find ACAD - GetObject - and > pass it to DLL). > Now I want to know, if something similar is possible also in .NET? > > If anyone knows different solution, or if you know where to find it, would > you be kind enough to share it? > > With best regards, jonz
0 Likes
Message 7 of 7

Anonymous
Not applicable
Here is a good link, I was just reading.


http://msdn.microsoft.com/msdnmag/issues/02/10/NETTopTen/default.aspx


"Paul Richardson" wrote in message
news:4800247@discussion.autodesk.com...
> Jonz, Sorry I couldn't help. Even with a fast computer
> I just leave my app running and close and open the
> drawing to unload the dll. There is no netunload.
>
> One of the Brains should have an answer.
> Tony,Mike,Owen, otheres?? If you don't
> get one Norman in the VBA group is
> vs.net savy.
>
> Paul
> "jonz_si" wrote in message
> news:1789989.1112646363440.JavaMail.jive@jiveforum1.autodesk.com...
>>I tried everything, but it doesn't seem to work.
>>
>> I will again try to explain, what and why I am trying to achieve.
>>
>> ADT on my computer takes around 3 minutes to start, so every time I want
>> to debug or test something, I need to start ADT first, then (net)load.
>> Once, you load the application, it can't be unloaded, and also you can't
>> stop the debugger, recompile and load it again. The only solution is, to
>> close ADT (ACAD).
>>
>> This was much faster in VBA. I know, that the same problem exists in
>> ObjectARX, but at least you have "unload" option - I've heard, that it
>> doesn't work as it should.
>>
>> Few years ago, I created DLL in VB6, and it was possible to debug it with
>> ACAD, that ran all the time (I had to add new project to the solution,
>> and
>> I need to define it as startup. Then I had to find ACAD - GetObject - and
>> pass it to DLL).
>> Now I want to know, if something similar is possible also in .NET?
>>
>> If anyone knows different solution, or if you know where to find it,
>> would
>> you be kind enough to share it?
>>
>> With best regards, jonz
>
>
>
0 Likes