BC won't release my plugin when I unload it
I have a .BRX application that I often need to run from the debugger in Visual studio. Sometimes it works for a long period and sometimes it suddenly complains that the file is locked from BricsCAD so it can't build a new version.
So I have BricsCAD started without any plugin loaded. I build and start my application from Visual Studio and in BC I use "appload" and load my application and I can run it. When I'm done I use "appload" and unload it and stops the debug from Visual Studio.
Now I should be able to do the same thing again and sometimes it works but sometimes not so I have to restart BricsCad before I can run my plugin again. It can work for days and when suddenly something must happen and it's not working for days, until it just suddenly start work again. I haven't figured out what is causing it but it must be BC that won't release it even when I do an unload.
This is not a new behavior. It's always been like that.
So I have BricsCAD started without any plugin loaded. I build and start my application from Visual Studio and in BC I use "appload" and load my application and I can run it. When I'm done I use "appload" and unload it and stops the debug from Visual Studio.
Now I should be able to do the same thing again and sometimes it works but sometimes not so I have to restart BricsCad before I can run my plugin again. It can work for days and when suddenly something must happen and it's not working for days, until it just suddenly start work again. I haven't figured out what is causing it but it must be BC that won't release it even when I do an unload.
This is not a new behavior. It's always been like that.
0
Comments
-
Usually, this happens because you have some resource still open.
Examples would be using the COM API for another program that hasn’t closed,
or maybe a creating a custom object that’s added to the database.
In the latter case you should lock the app with acrxLockApplication
0