Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4331

[CONNECT C++ U7] Unloading a Native App

$
0
0

I've been developing a Native Code C++ tool. I code a little, then test a little. My workflow is to use the Keyin Browser to "mdl load test" (to load the tool); "test dosomthing" (to execute the tool); and "mdl unload test" (to unload the tool). Then I make changes, re-compile, and start the cycle over again. Now I've got a tool that I want to add to the ribbon, so I create my Workflow, Tab, Group, and finally Button. I assign the keyin to that button, and click the icon to launch the tool. When I want to make a modification, I "mdl unload test", and see that it is unloaded. However, when I next try to run BMAKE, I get:

"The process cannot access the file because it is being used by another process."

I am able to re-build the C++ parts (I'm using VS2015 to compile, not BMAKE) without issue. But when I try to run BMAKE to recompile the resources, BMAKE reports the "error" above. So, why isn't "unloading" a tool that was started from a ribbon button releasing itself completely? For the button, the keyin is of the format:

[test]test dosomething

It's the way I've always done the keyin string in V8i such that it will auto load if not already previously loaded. Is this approach no longer valid?

Bruce


Viewing all articles
Browse latest Browse all 4331

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>