It is a known limitation of FLTK on OS X that you must run it in the main thread, and it is not safe to access the GUI from other threads at the same time. To disable the FLTK graph displays, call csoundSetIsGraphable() with a setting of true between csoundPreCompile() and csoundCompile(), for example: CSOUND *csound = csoundCreate(NULL); if (csoundPreCompile(csound) != 0) error(); /* fail in some way */ csoundSetIsGraphable(csound, 1); /* set your MakeGraph etc. callbacks here if there are any */ /* ... */ if (csoundCompile(csound, argc, argv) != 0) error(); /* fail in some way */ /* ... */ The FLTK plugin will not register callbacks for drawing graphs if it is already graphable. Note that it will set a yield callback if any FLTK functionality (graphs or opcodes) is used, overriding your yield callback function if there is any. Of course, you can also just remove the "widgets" plugin and get rid of all the problems, assuming that you do not need the FLTK opcodes. On Sunday 25 December 2005 10:48, Matt Ingalls wrote: > staying up waiting for santa, > i've been playing around with an objective-C > "Cocoa" host app for csound5 [rc1 framework ] > on OSX and it appears the FLTK Graphics mess things up. > > if i call csoundPerform in a different thread from csoundCreate, > the render hangs before any audio is written to disk. > > if i call csoundPerform from the same thread, the render works but > corrupts my > menus and hangs the application. > > csoundSetIsGraphable() true or false does nothing [ fltk graphics > still show ] > > if i add a -g flag everything works fine in ASCII. > > i'll test with my own graphics callbacks tomorrow.. > > > FLTK opcodes display, but don't update display and cause my app's menus > to go away and hang the application too.. > > > everything else seems good so far! ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net