-
bgarton
Hello everyone --
I'm a relative 'newbie' to pd external development. I have an object I've revamped that now works for OSX, and I'd like to port it to Windows 10. I'd prefer not to use mingw for this project, and I'm wondering if there are any examples/templates/instructions for setting up VS to build a pd external. I've searched through various forms and google-ness, and I don't see anything jumping out at me. But I may be missing something obvious...
brad
-
bgarton
But your attribute((destructor)) approach seems to work! Thanks!
brad
-
bgarton
@Nicolas-Danet said:
attribute((destructor))
Yes -- if I have an open patch with my object in it, the free() function for that object does not execute when I quit pd.
-
bgarton
Hey everyone --
I'm new to this list, so sorry if I'm missing out on some obvious documentation somewhere! I'm updating some objects (rtcmix~) for pd, and I've run into a small clean-up issue. When I delete my objects, or close the patch, the free() function gets called and I can do the clean-up. But when I quit pd, it doesn't get called (no need to really). I tried installing a signal-handler to catch the quit, but to no avail, Is there any way to do this?
brad