Well, I don't know much about this topic, but the access violation message is propably because Windows prevents programs to manipulate other programs or accessing their memory. You will somehow have to make Gamestudio allow your other exe to access it, if that is possible.

But what about just writing a text file which is read and interpreted by the Gamestudio program?