[vtkusers] VTK macosx multithreading
Sean McBride
sean at rogue-research.com
Wed Apr 28 11:51:49 EDT 2010
On Wed, 28 Apr 2010 13:52:59 +0200, Thomas Fritz said:
>I have compiled VTK for MacOSX using X11.
>
>I run the whole VTK Stuff in a thread. Everything works fine, but when i
>close the VTK Window and restart the visualization thread i get the
>following message:
>
>CardioMechanics[5108] <Error>: kCGErrorIllegalArgument:
>CGSSetWindowSendExposed: Invalid window 0x6e5
>CardioMechanics[5108] <Error>: kCGErrorFailure: Set a breakpoint @
>CGErrorBreakpoint() to catch errors as they are logged.
>CardioMechanics[5108] <Error>: unknown error code: invalid drawable
>error: xp_attach_gl_context returned: 2
>CardioMechanics[5108] <Error>: kCGErrorIllegalArgument:
>CGSSetWindowSendExposed: Invalid window 0x6e5
>CardioMechanics[5108] <Error>: unknown error code: invalid drawable
Likely you are running code on a secondary thread that should only be
run from the main thread.
Have you read for example:
<http://www.vtk.org/Wiki/VTK_FAQ#Is_VTK_thread-safe_.3F>
--
____________________________________________________________
Sean McBride, B. Eng sean at rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
More information about the vtkusers
mailing list