Understanding How to Uninstall the .Net Application in IJCAD 2018

Asked 2 years ago, Updated 2 years ago, 95 views

Developed using .Net at IJCAD 2018.

I'm going to load the module with NETLOAD, but is there a way to unload it?
Every time I modify the program, I need to restart CAD, so I would like to be able to unload it as I did with C++.

If you know how to do it, could you please let me know?

.net ijcad

2022-09-29 22:27

4 Answers

Unfortunately, there seems to be nothing other than restarting CAD.

I think it is not implemented because it seems that the assembly cannot be unloaded from AppDomain due to the Net Framework mechanism (specification?).


2022-09-29 22:27

AutoCAD also prevents you from unloading NETLOADed modules.


2022-09-29 22:27

The existing system may not have functionality, but just for your information.

Understanding Dynamic DLL Release

Why don't you submit it to the IJCAD manufacturer as a request?
It says AutoCAD compatibility, so I may not add a feature that comes off it.

However, as stated in the comments in the article below, it seems that it is very difficult to realize that it can withstand practical use.
Unable to load DLLs using AppDomain

The memory space is different, so it seems difficult to call and access.

AppDomain has an in-process process role, and each AppDomain has its own memory space.The same static variable is stored in memory separately from the main AppDomain and cannot be accessed through AppDomain.

The following comments are asking if it's worth the effort.

So I have a question, how important is the DLL unloading? (Is it worth the effort across AppDomain?)


2022-09-29 22:27

Thank you all for your reply.

I see, it's impossible in the present situation, so it's difficult because it's not easy.
To be honest, it's not that important and it's not worth the effort to implement it.

# Restarting CAD is a problem, and I think it's a bit troublesome.

For the time being, I will consider restarting and sending this as a request.

Thank you.


2022-09-29 22:27

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.