Okay, I've been working on this for a few hours, trying to learn SFML, but it's not working! I'm pretty sure int main() is not running for some BIZARRE reason... When I run it, it doesn't print anything to the screen (I'm using printing as my debugging system). Here's my code:
Is this by any chance a Windows application (as opposed to a console application)? If so, Windows applications don't have consoles by default. Anything sent to the standard output gets thrown away (with a possible exception if the caller redirects the output to a file or something).
I'm not particularly experienced with threading, but I'd guess it has something to do with the fact you are trying to access App from different threads.
Okay, so when I use mutexes the program works perfectly. But does this not defeat the purpose of using multiple threads? I would believe that it will now work equally as slowly...
Multiple threads can't all be playing in the same file/memory space as each other. Leads to data inconsistencies. Could have one thread trying to read something at the same as another thread is trying to write that exact data.
@ResidentBiscuit:
Thanks. I guess I won't be using threads then!
However, I have a new problem... The program only runs correctly on my laptop. I have no F***ing clue why either! My laptop is AMD as my desktop is Intel, that's the only difference I really see. But I would believe that it should still work; I am running the EXACT same program right from my flash drive...
Thanks for any help!