Thread priority Issue

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
 
C

Cholo Lennon

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top