It might be related to a know D/AVE2D issue. If you are using the D/AVE2D graphics driver make sure you place it in the HAL/Common layer and not in your thread. Putting it in your thread will generate an error.