Using tcl 8.6cvs compiled for X11 graphics on Mac OSX, I have been attempting to get an application working whose purpose is to incrementally display an image onscreen as it is generated by a raytracer. To do this, the general approach is:
1. Set up the window and Tk Photo
2. Enter a loop where the image generation routine calls a function to put blocks into the photo (this is in C)
a. Calls Tk_PhotoPutBlock to write the generated information
b. Calls Tcl_DoOneEvent(TCL_ALL_EVENTS|TCL_DONT_WAIT); to immediately update the view.
It's the latter step that seems to be failing: the window appears, but there is no visible output and the error on the command line is:
Tcl_WaitForEvent: CFRunLoop finished
If I comment out the Tcl_DoOneEvent line, the display eventually does show the image but only upon completion of the entire raytrace. This same code did succeed with Tcl/Tk 8.5 X11 on the Mac, although the 8.5 AquaTk results were similar to the above - it either didn't update until the end or produced the same error as seen above.
If any additional information or example code is needed I will do my best to supply it. Any help appreciated.