Help with Win Thread

      Help with Win Thread

      For my project I have to communicate via RS 232 with an ARM7. Therefore I start a background thread to handle the communication. In my test file everything works well, shifting this to my project mistakes occure:
      Especially the thread cannot be started, member variables are not initialized anymore, in function calls with parameters they are transferred incorrect. For example a BYTE with 0x90 is given to the called function, but the function gets a BYTE with i.e. 0xF0. Furthermore this value is changed in the called function also in codelines where this value is not used.

      All this looks like running at some point out of memory, but changes in the output base adress or the stack (project settings) did not help.

      Is there anyone having an idea?