Hi!
EDIT: SKIP THIS PART I screwed up and it is not an issue anymore.
I'm experiencing some serious difficulties that I perceive as very strange indeed!
I'm programming a multi Thread app and all of a sudden the compiler starts to complain about "xxx" does not name a type when I declare "xxx" under private in my .h file. I can't figure out what the heck the difference is from half an hour ago.
HERE IS THE PROBLEM:
I have two threads (+ a GUI-thread) thread one and thread two.
I can write and read back OK from thread one to Thread twos public variables. But when I try to read them in thread two I get nonesense result: 7.11756e-307.
How could this be?
EDIT2:
When I write to thread twos public vars from the GUI-thread it sticks and is the same when read back from within thread two... Does thread one lack some kind of writing-rights? I think it's strange that it can write and read back the same result, though.
Perhaps it is easier to only use the GUI-thread's public vars for inter threaded communication but I cant seem to get that going either...
Cheers!
/Tottish
Bookmarks