Results 1 to 2 of 2

Thread: ImgSource and Timers and Threads

  1. #1
    Join Date
    May 2006
    Posts
    5

    Default ImgSource and Timers and Threads

    Hi everyone,

    Just a quick question that I couldn't not find a previous answer to. I'm looking to load images in my program in response to a timer event. I'm using MFC and multi-media timers that I start using timeSetEvent. So far things are working properly except I seem to be seeing some memory leaks. I don't think that this is a problem with ImgSource more that multi-media timers use a separate thread for their processing.

    So I was just wondering if anyone has an experience loading images using multi-media timers and if so what is the best practice?

    I was also wondering what the best practice is for using ImgSource in a separate thread? Perhaps there are some examples that I missed.

    Thanks in advance.

    IRMark.

  2. #2
    Join Date
    Mar 2006
    Posts
    811

    Default Re: ImgSource and Timers and Threads

    i don't know anything about the MM timers that would cause leaks, but then again i have only a passing knowledge of them...

    but, abut IS and threads...

    1. what size are these leaks? (image-sized, or small)
    2. are you using the DLL or the static libs?
    3. if the static libs, are your threads calling IS40_ThreadExit when they finish ?
    Last edited by Admin; 10-18-2007 at 08:14 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •