1
General / Re: Most simple pollevent loop breaks program.
« on: June 16, 2014, 04:38:24 pm »
I'm sorry but i'll have to keep insisting it's not "my-code" related but rather a settings / linking type of problem.
I discovered that my release sfml build was compiled with the v110 libs enviroment while my program was with the v120. I noticed this in the dependency walker. Sfml libraries required v110 dlls my program required v120. But it was working. If i go v120 - v120 for some reason it all breaks down. Thing is i managed to find a temporary solution by removing the security check option in my compiler (/GS) after more closely inspecting the call stack..
It's really not like i haven't tried to remove code blocks till i get to a safe point in my program, but really, there is so randomness and unexplained behavior going on in this procedure that no sane person can keep up with it.
I'm not blaming sfml either of course. I'm even assured this problem is on my end but i'm almost convinced it's settings/building/linking problem or something of that nature. One thing that crossed my mind recently is that i switched Visual studio versions mid-project. Do you think this could have anything to do with it?
Also this problem is almost identical to mine:
http://www.dreamincode.net/forums/topic/245418-sfml-render-window-problem/
I discovered that my release sfml build was compiled with the v110 libs enviroment while my program was with the v120. I noticed this in the dependency walker. Sfml libraries required v110 dlls my program required v120. But it was working. If i go v120 - v120 for some reason it all breaks down. Thing is i managed to find a temporary solution by removing the security check option in my compiler (/GS) after more closely inspecting the call stack..
msvcr120.dll!_crt_debugger_hook(int _Reserved) Line 60 C
G5.exe!__raise_securityfailure(_EXCEPTION_POINTERS * ExceptionPointers) Line 70 C
G5.exe!__report_gsfailure() Line 241 C
G5.exe!__raise_securityfailure(_EXCEPTION_POINTERS * ExceptionPointers) Line 70 C
G5.exe!__report_gsfailure() Line 241 C
It's really not like i haven't tried to remove code blocks till i get to a safe point in my program, but really, there is so randomness and unexplained behavior going on in this procedure that no sane person can keep up with it.
I'm not blaming sfml either of course. I'm even assured this problem is on my end but i'm almost convinced it's settings/building/linking problem or something of that nature. One thing that crossed my mind recently is that i switched Visual studio versions mid-project. Do you think this could have anything to do with it?
Also this problem is almost identical to mine:
http://www.dreamincode.net/forums/topic/245418-sfml-render-window-problem/