Bitmap manipulation while in a thread

Login to reply to this topic.
Mon, 2004-02-02 06:29
Joined: 2004-02-02
Forum posts: 1
Creating a new CFbsBitmapDevice from a bitmap seems to always crash when done from a thread (a RThread to be specific).  In addition if I create the device and then pass it to the thread, it will crash my app when any calls are made.  My code works fine when done from the main thread created by the app.  My goal is to bitblt copy a picture acquired from the camera by my thread to a CFbsBitmap instance in the main process, so it can update the screen.  Is there something I'm missing?

Mon, 2004-02-02 14:38
Joined: 2003-12-05
Forum posts: 683
Bitmap manipulation while in a thread
Server sessions are thread relative. So either share the session with the thread (if possible), or create a new session with the font and bitmap (also window?) server from your thread.
  • Login to reply to this topic.