Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / data execution prevention

Author
Message
old man
20
Years of Service
User Offline
Joined: 25th Feb 2004
Location:
Posted: 11th Aug 2008 13:35
I am trying to use dark GDK with visual C++ 2008 with a fairly small fps created world on Vista. At random stages of debug the programme stops due to "Data Execution Prevention" as the reason.

Any ideas?

uff
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 11th Aug 2008 18:10
You've made some errors in data access. Somewhere, you are trying to access memory that isn't part of your program. Check how you are using an array.

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 11th Aug 2008 18:39
An access violation would result from simply trying to access an invalid/protected memory location. It sounds more like there's some corruption going on that causes execution to leap to a part of memory that doesn't have execution permission. If this is the case, if you disable DEP your program should just crash.

Not sure if the names are correct as I'm on a French version of Vista, but... Open control panel, select "Advanced System Parameters", then click the "Parameters" button in the "Performance" section. Select the DEP tab. There should be two options. The first activates DEP for only Windows services and programs, which is what I think you need to select to disable it for your programs.

Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 11th Aug 2008 20:04 Edited at: 11th Aug 2008 20:05
I don't recommend disabling it. It stops some issues that could crash Windows. Fixing the errors in your program would be a better solution.

P.S. Benjamin, if English is your second language, you speak it excellently. Er, type it. You know what I mean.

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 11th Aug 2008 20:15
Quote: "I don't recommend disabling it. It stops some issues that could crash Windows. Fixing the errors in your program would be a better solution."

Agreed, I'm only suggesting it be done to see if the application will crash with it disabled.

Quote: "P.S. Benjamin, if English is your second language, you speak it excellently. Er, type it. You know what I mean."

I am English actually, but thanks all the same.

Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 11th Aug 2008 21:51
You said French Windows, so I assumed that was your native language.

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
old man
20
Years of Service
User Offline
Joined: 25th Feb 2004
Location:
Posted: 12th Aug 2008 10:48
Thanks for that, yes the code is a mess and I am going to start again!

uff

Login to post a reply

Server time is: 2024-09-30 05:24:41
Your offset time is: 2024-09-30 05:24:41