// JP opened flex table

Click to See Complete Forum and Search --> : CreateThread() beginthread()?


Gyannea
May 18th, 2004, 09:10 AM
I have read a lot about the problems with CreateThread() and the standard C library.

Can anyone explain to me what the problem is and what _beginthreadex() does to solve it?

I use the 'strlen()' function in my thread created by CreateThread() and I don't know if it causes any problems. I replace the 'strlen()' function with the win32 'lstrlen()' and it does not make any difference.

If anyone understands the "why" in this issue, I would greatly appreciate it!

Brian

kuphryn
May 18th, 2004, 11:57 AM
C++ comprises of, among others, C-library from way back when multithreading is just an idea. CreateThread() does not take into considering these non-thread-safe libraries. _beginthreadex() prepares thread-safe libraries used in the thread.

Kuphryn

//JP added flex table