Another OpenGL deadlock

I think the only solution is to really avoid using the MessageManagerLock inside the renderOpenGL callback. There are almost always other ways to do what you probably want to do without MessageManagerLock. For example, try to use FIFOs or copying data instead. Can you tell me exactly what you are trying to achieve and why you are trying to accquire the message lock?