I think I'm facing a bug in Factor. I have something like this:
TYPEDEF: double PaTime
C-STRUCT: PaDeviceInfo
{ int structVersion }
{ char* name }
{ PaHostApiIndex hostApi }
{ int maxInputChannels }
{ int maxOutputChannels }
{ PaTime defaultLowInputLatency }
On at least OSX/Cocoa, if graft* throws an uncaught exception, the factor image will die when the window containing the gadget is closed. To reproduce, load the attached gadget-of-death.factor file from the listener, then run: USE: gadget-of-death death-gadget-windowYou'll receive an error in the
It turns out that the graft state was getting corrupted when either
graft* or ungraft* threw an error. I wrapped the notify loop in a
cleanup block to ensure the graft state gets updated, which suppresses
the die. The fix is in my git repo ( git://pgdn.org/factor ), commit
ca6247f .
-Joe