Vista annoyance: one step forward, three steps back [SOLVED]
-
Hey guys As some of you might know I've been having issues with Vista not executing a program i wrote, i finally found a work around to that problem, but now Vista is pulling some new stunts! As soon as my app calls the an external DLL(it contains methods to connect and communicate with an external device) the program crashes! I little vista bubble pops up saying "To help protect your computer Data Execution Prevention has closed [program name], click here to learn more." So i click it and find that there is an exception list i can add my app to, i select my app to add it to the list and im greeted with a message box that says "This program must run with Data Execution Prevention (DEP) enabled. You cannot turn off DEP for this program" I dont know anymore, this is really frustrating. :sigh: Does anyone have some suggestions for me? maybe turn DEP off completely? Thanx
Harvey Saayman - South Africa Junior Developer .Net, C#, SQL
you.suck = (you.passion != Programming)
modified on Tuesday, August 26, 2008 5:48 AM
The external component is writing to unallocated memory. In previous OS's this would go unnoticed. Vista actually protects you against malicious use of this scenario. Turning DEP off wont help in Vista, you will still get an exception (attempting to write to null pointer or something). I suggest you contact the authors of the external DLL and ask them to advise you on getting it to run on Vista or ask them to fix the issues.
xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 alpha 4a out now (29 May 2008) -
Hey guys As some of you might know I've been having issues with Vista not executing a program i wrote, i finally found a work around to that problem, but now Vista is pulling some new stunts! As soon as my app calls the an external DLL(it contains methods to connect and communicate with an external device) the program crashes! I little vista bubble pops up saying "To help protect your computer Data Execution Prevention has closed [program name], click here to learn more." So i click it and find that there is an exception list i can add my app to, i select my app to add it to the list and im greeted with a message box that says "This program must run with Data Execution Prevention (DEP) enabled. You cannot turn off DEP for this program" I dont know anymore, this is really frustrating. :sigh: Does anyone have some suggestions for me? maybe turn DEP off completely? Thanx
Harvey Saayman - South Africa Junior Developer .Net, C#, SQL
you.suck = (you.passion != Programming)
modified on Tuesday, August 26, 2008 5:48 AM
Stop bashing vista for every wrong line of code which someone wrote X| X| PS: Apple rocks!!
-
Hey guys As some of you might know I've been having issues with Vista not executing a program i wrote, i finally found a work around to that problem, but now Vista is pulling some new stunts! As soon as my app calls the an external DLL(it contains methods to connect and communicate with an external device) the program crashes! I little vista bubble pops up saying "To help protect your computer Data Execution Prevention has closed [program name], click here to learn more." So i click it and find that there is an exception list i can add my app to, i select my app to add it to the list and im greeted with a message box that says "This program must run with Data Execution Prevention (DEP) enabled. You cannot turn off DEP for this program" I dont know anymore, this is really frustrating. :sigh: Does anyone have some suggestions for me? maybe turn DEP off completely? Thanx
Harvey Saayman - South Africa Junior Developer .Net, C#, SQL
you.suck = (you.passion != Programming)
modified on Tuesday, August 26, 2008 5:48 AM
You are not the only one with this problem. ANTS Profiler does the same if you feed it an assembly with tail calls (I believe this is cause by an offset that is 16 instead of 12 or vice versa, but it takes just one wrong step for DEP to kick in).
xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 alpha 4a out now (29 May 2008) -
i also came across that right after posting and it worked. Its not going to impress sys-admins at most of our clients but it will do for now. Thanx pete
Harvey Saayman - South Africa Junior Developer .Net, C#, SQL
you.suck = (you.passion != Programming)
-
The external component is writing to unallocated memory. In previous OS's this would go unnoticed. Vista actually protects you against malicious use of this scenario. Turning DEP off wont help in Vista, you will still get an exception (attempting to write to null pointer or something). I suggest you contact the authors of the external DLL and ask them to advise you on getting it to run on Vista or ask them to fix the issues.
xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 alpha 4a out now (29 May 2008)turned it off and everything works fine now :) had too run cmd as admin and execute the following
bcdedit.exe /set {curren} nx AlwaysOff
and then restart the machine
leppie wrote:
I suggest you contact the authors of the external DLL
Were going too, this is just a quick fix. But the authors are Chinese that no speak engwhish velly goot
Harvey Saayman - South Africa Junior Developer .Net, C#, SQL
you.suck = (you.passion != Programming)
-
turned it off and everything works fine now :) had too run cmd as admin and execute the following
bcdedit.exe /set {curren} nx AlwaysOff
and then restart the machine
leppie wrote:
I suggest you contact the authors of the external DLL
Were going too, this is just a quick fix. But the authors are Chinese that no speak engwhish velly goot
Harvey Saayman - South Africa Junior Developer .Net, C#, SQL
you.suck = (you.passion != Programming)
Harvey Saayman wrote:
But the authors are Chinese that no speak engwhish velly goot
This from a South African! :laugh:
------------------------------------ "The production of useful work is strictly limited by the laws of thermodynamics. The production of useless work seems to be unlimited." - Donald E. Simanek
-
Hey guys As some of you might know I've been having issues with Vista not executing a program i wrote, i finally found a work around to that problem, but now Vista is pulling some new stunts! As soon as my app calls the an external DLL(it contains methods to connect and communicate with an external device) the program crashes! I little vista bubble pops up saying "To help protect your computer Data Execution Prevention has closed [program name], click here to learn more." So i click it and find that there is an exception list i can add my app to, i select my app to add it to the list and im greeted with a message box that says "This program must run with Data Execution Prevention (DEP) enabled. You cannot turn off DEP for this program" I dont know anymore, this is really frustrating. :sigh: Does anyone have some suggestions for me? maybe turn DEP off completely? Thanx
Harvey Saayman - South Africa Junior Developer .Net, C#, SQL
you.suck = (you.passion != Programming)
modified on Tuesday, August 26, 2008 5:48 AM
DEP existed before Vista as well. But with Vista, the security has been tightened. I usually am not a Vista fanboy, but with this issue of yours, you cannot blame Vista. It actually is trying to protect you from something that is presumably malicious.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche .·´¯`·->Rajesh<-·´¯`·. [Microsoft MVP - Visual C++]
-
Harvey Saayman wrote:
But the authors are Chinese that no speak engwhish velly goot
This from a South African! :laugh:
------------------------------------ "The production of useful work is strictly limited by the laws of thermodynamics. The production of useless work seems to be unlimited." - Donald E. Simanek
You're such a heartless bastard. :laugh:
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche .·´¯`·->Rajesh<-·´¯`·. [Microsoft MVP - Visual C++]
-
Stop bashing vista for every wrong line of code which someone wrote X| X| PS: Apple rocks!!
Priyatam K wrote:
Stop bashing vista
when they fix it ill stop bashing
Priyatam K wrote:
every wrong line of code which someone wrote
i wrote the app in question, and I didnt write wrong lines of code! Its a simple as hell 100 line console app that calls methods in a DLL. so go sit in the corner and eat your little Apple!
Harvey Saayman - South Africa Junior Developer .Net, C#, SQL
you.suck = (you.passion != Programming)
-
DEP existed before Vista as well. But with Vista, the security has been tightened. I usually am not a Vista fanboy, but with this issue of yours, you cannot blame Vista. It actually is trying to protect you from something that is presumably malicious.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche .·´¯`·->Rajesh<-·´¯`·. [Microsoft MVP - Visual C++]
i agree, but when it tells me im not allowed to put an app in the exception list without even a reason, thats not cool.
Harvey Saayman - South Africa Junior Developer .Net, C#, SQL
you.suck = (you.passion != Programming)
-
haha, you trying to say there's something wrong with my English? I can like to speak English deliciously! :-D
Harvey Saayman - South Africa Junior Developer .Net, C#, SQL
you.suck = (you.passion != Programming)
Harvey Saayman wrote:
I can like to speak English deliciously
Tick VG! :)
------------------------------------ "The production of useful work is strictly limited by the laws of thermodynamics. The production of useless work seems to be unlimited." - Donald E. Simanek
-
Harvey Saayman wrote:
But the authors are Chinese that no speak engwhish velly goot
This from a South African! :laugh:
------------------------------------ "The production of useful work is strictly limited by the laws of thermodynamics. The production of useless work seems to be unlimited." - Donald E. Simanek
haha, you trying to say there's something wrong with my English? I can like to speak English deliciously! :-D
Harvey Saayman - South Africa Junior Developer .Net, C#, SQL
you.suck = (you.passion != Programming)
-
Harvey Saayman wrote:
I can like to speak English deliciously
Tick VG! :)
------------------------------------ "The production of useful work is strictly limited by the laws of thermodynamics. The production of useless work seems to be unlimited." - Donald E. Simanek
Dalek Dave wrote:
Tick VG!
huh?
Harvey Saayman - South Africa Junior Developer .Net, C#, SQL
you.suck = (you.passion != Programming)
-
Dalek Dave wrote:
Tick VG!
huh?
Harvey Saayman - South Africa Junior Developer .Net, C#, SQL
you.suck = (you.passion != Programming)
Tick as is get a tick for a right answer, and VG = Very Good. It is what teachers write on your schoolwork.
------------------------------------ "The production of useful work is strictly limited by the laws of thermodynamics. The production of useless work seems to be unlimited." - Donald E. Simanek
-
The external component is writing to unallocated memory. In previous OS's this would go unnoticed. Vista actually protects you against malicious use of this scenario. Turning DEP off wont help in Vista, you will still get an exception (attempting to write to null pointer or something). I suggest you contact the authors of the external DLL and ask them to advise you on getting it to run on Vista or ask them to fix the issues.
xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 alpha 4a out now (29 May 2008)leppie wrote:
The external component is writing to unallocated memory.
Rather, it is trying to run code in memory not allocated with EXECUTE rights.
We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
blog: TDD - the Aha! | Linkify!| FoldWithUs! | sighist -
DEP existed before Vista as well. But with Vista, the security has been tightened. I usually am not a Vista fanboy, but with this issue of yours, you cannot blame Vista. It actually is trying to protect you from something that is presumably malicious.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche .·´¯`·->Rajesh<-·´¯`·. [Microsoft MVP - Visual C++]
Rajesh R Subramanian wrote:
but with this issue of yours, you cannot blame Vista. It actually is trying to protect you from something that is presumably malicious.
I'm also trying to tell the same thing :mad:
-
Tick as is get a tick for a right answer, and VG = Very Good. It is what teachers write on your schoolwork.
------------------------------------ "The production of useful work is strictly limited by the laws of thermodynamics. The production of useless work seems to be unlimited." - Donald E. Simanek
now i get it :-O
Harvey Saayman - South Africa Junior Developer .Net, C#, SQL
you.suck = (you.passion != Programming)
-
Priyatam K wrote:
Stop bashing vista
when they fix it ill stop bashing
Priyatam K wrote:
every wrong line of code which someone wrote
i wrote the app in question, and I didnt write wrong lines of code! Its a simple as hell 100 line console app that calls methods in a DLL. so go sit in the corner and eat your little Apple!
Harvey Saayman - South Africa Junior Developer .Net, C#, SQL
you.suck = (you.passion != Programming)
Wrong lines of code might be in dll. Pro**bab(y)**ly you misunderstood me X| No, thanks. I just had my lunch. X| X|
-
leppie wrote:
The external component is writing to unallocated memory.
Rather, it is trying to run code in memory not allocated with EXECUTE rights.
We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
blog: TDD - the Aha! | Linkify!| FoldWithUs! | sighist -
i agree, but when it tells me im not allowed to put an app in the exception list without even a reason, thats not cool.
Harvey Saayman - South Africa Junior Developer .Net, C#, SQL
you.suck = (you.passion != Programming)
Your program is probably marked as /NXCOMPAT[^] (compatible with DEP, the C# compiler does this by default[^]). You can't blame Vista if your program says "I'm fine with DEP" and then isn't.