Now this might not be an AS fault, but I'm running out of options.
I've neglected the Windows side of the engine for a few months, and I am trying to update it. Part of that update was switching from compiling AS from source inside the project to linking to the library (built from projects that AS supplies).
However when the game runs I get the following error.
Run-Time Check Failure #2 - Stack around the variable 'retQW' was corrupted.
This happens in as_callfun_x86.cpp line 1189 (CallThisCallFunction). Any ideas? I'm sure this is me being stupid, but after a day of trying to figure this I'm at a loss.
Like I said this might not be down to AS, MSVS isn't my usual environment so I could done something dumb.
Edit
I should mention that I've compiled it with /MD
Edit - Some Background
I define my game components in AS, this app has many components however the crash always with the same component which is not the first component to be initialized. They all run through a common script interface. The crash occus when AS calls one of the hook methods (It doesn't matter which if I comment out the line it will crash on a different hook but same component). This is odd, the component in question appears in almost every game object, this isn't the first GO to be created, another is created before and runs through most of the component hooks before this one is even created. This also all works fine on MacOS.