Thread priority Issue

  • Thread starter Thread starter adnanhr81
  • Start date Start date
A

adnanhr81

Hi all,

We have a C# app running on Windows CE that communictes with on board
GPS receiver using dll written in C++. C++ opens the port on which
receiver is connected using CreateFile with all the appropriate flags
and options. Its been working great but lately we have been having few
problems with the createfile function. It returns error saying
resources could not be allocated. The thread that calls the createfile
function was running on below normal priority. We changed the priority
to normal and the error went away and have not seen it since then.
Even though the problem appears to be fixed, I am just wondering how
thread priority could interfere with Createfile function. Any help be
greatly appreciated.

Thanks
 
Maybe CreateFile use some kind of temporatization to open the port. If you use a low thread priority, more time take the function to
complete the task.
 
Back
Top