I'm not completely sure on this but are you using the proper version of the acknex.dll? I know with C++ you've got to create a new DLL every time you recompile the program. So when switching between debug and release you've got to create that DLL again for the new version. The DLL that comes with GameStudio is only for debug purposes and will not work with any other version of your code.