Vista annoyance: one step forward, three steps back [SOLVED]
-
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.
Daniel Grunwald wrote:
You can't blame Vista if your program says "I'm fine with DEP" and then isn't.
no, but i can blame vista for giving me ambiguous error messages that make no sense.
Harvey Saayman - South Africa Junior Developer .Net, C#, SQL
you.suck = (you.passion != Programming)
-
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
fixing your code is a better option than telling your client to turn off DEP. What if their IT won't let them ?
Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.
-
Daniel Grunwald wrote:
You can't blame Vista if your program says "I'm fine with DEP" and then isn't.
no, but i can blame vista for giving me ambiguous error messages that make no sense.
Harvey Saayman - South Africa Junior Developer .Net, C#, SQL
you.suck = (you.passion != Programming)
The error message was not ambiguous, because the your program (the DLL, possibly?) was compiled with /NXCOMPAT, that tells the operating system that it is tested be compatible with the DEP feature. Therefore, Vista says that this program should be run with DEP turned on. Makes sense to me.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche .·´¯`·->Rajesh<-·´¯`·. [Microsoft MVP - Visual C++]
-
fixing your code is a better option than telling your client to turn off DEP. What if their IT won't let them ?
Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.
hey CG i agree, and disabling DEP is only a quick fix. Its not my code its moaning about, its when i tell the 3rd party DLL to connect to the external device.
Harvey Saayman - South Africa Junior Developer .Net, C#, SQL
you.suck = (you.passion != Programming)
-
The error message was not ambiguous, because the your program (the DLL, possibly?) was compiled with /NXCOMPAT, that tells the operating system that it is tested be compatible with the DEP feature. Therefore, Vista says that this program should be run with DEP turned on. Makes sense to me.
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 was referring to my previous "Vista Annoyance" threads
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
Why would a South African, by default, not speak good English? It's home language to many of use. :confused:
-
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
-
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 does no good to get rational at Vista hating, the hate goes deeper than rational thought.
-
hey CG i agree, and disabling DEP is only a quick fix. Its not my code its moaning about, its when i tell the 3rd party DLL to connect to the external device.
Harvey Saayman - South Africa Junior Developer .Net, C#, SQL
you.suck = (you.passion != Programming)
Harvey Saayman wrote:
Its not my code its moaning about, its when i tell the 3rd party DLL to connect to the external device.
Then get them to pay you to rewrite the .dll functions! There's always a simple solution.
-
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