Access Violation when call "level_load"

Posted By: Mysterious

Access Violation when call "level_load" - 07/22/09 06:55

Hello
I am working on project that contains several levels,
I am using CodeGear2007 with latest version of A7 7.7.7.4

when I run the exe file from the IDE every thing is fine
but when I run the exe file immediately (with out IDE) there are some levels that shows "Access Violation" when the function "level_load" is called, how can I know what is the problem ?
Posted By: DJBMASTER

Re: Access Violation when call "level_load" - 07/22/09 07:49

can you post some of your code. Did you initialize the engine first?
Posted By: Mysterious

Re: Access Violation when call "level_load" - 07/22/09 07:54

Yes I did,

as I mention before All levels working from within the IDE, but three of them make an "Access Violation" error when I run the exe directly without CodeGear
Posted By: DJBMASTER

Re: Access Violation when call "level_load" - 07/22/09 08:00

oh sorry, i posted before i thought lol.

Well an Access Violation seems to me that you are trying to use resources that can't be found. In this case its trying to find a level and can't.

I'm not familiar with CodeGear, but do you specify any paths to search or extra directories in the IDE?
Posted By: Mysterious

Re: Access Violation when call "level_load" - 07/22/09 08:11

I thought of that A7 couldn't find the Level so I try to rename it the error was from A7 with message "Malfunction W1301 Level1.wmb Can't open file"

so I think A7 can find the Level when the problem Access Violation is happened

(thanks for quick reply DJBMASTER smile )
Posted By: JDogRES

Re: Access Violation when call "level_load" - 08/02/09 17:22

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.
Posted By: Mysterious

Re: Access Violation when call "level_load" - 08/04/09 18:34

Sorry I didn't update this post before, the problem solved

http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=280560#Post280560

thanks...
© 2023 lite-C Forums