Hello,
I am writing a dynamic library on Mac OS X and after I have compiled and tested it in ZBrush I make some changes and recompile. Unfortunately I then need to shutdown ZBrush, cancel any “do you want to save” dialogs, start ZBrush again and load my dynamic library activating zscript (the last bit I could probably automate).
I understand why; the dynamic library is loaded into the memory space of the ZBrush process. It would be counter to the dynamic part of dynamic library if it did not. The releasing of said memory space is what I don’t quite understand. I mean Zbrush seemingly does not close the dynamic library before it terminates. At least I get no logs from my library’s destructor. Perhaps ZBrush developers have sided with “let the OS take care of reclaiming the memory, at least our program won’t stall upon termination.” Which is fine and what I also would adhere to. But that does not help me right now
I guess I could try implementing a build script into Xcode that increments the product filename and having the zscript part check for the latest version. Would probably result in an awful lot of dynamic libraries within the hour
How do you all write and test libraries? Does the ZBrush debug/diagnostic mode still exist (holding a certain modifier key upon startup) and does that help? Perhaps pressing Init ZBrush from the Preference palette (just thought of that possibility, will try tomorrow)?
Thanks for any help,