[Factor-talk] Bug in C-STRUCT: ?

2008-01-26 Thread Jorge Acereda MaciĆ”
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 }

[Factor-talk] Fwd: Throwing from graft* causes die when window is closed

2008-01-26 Thread Joe Groff
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

Re: [Factor-talk] Throwing from graft* causes die when window is closed

2008-01-26 Thread Joe Groff
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