Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Vista annoyance: one step forward, three steps back [SOLVED]

Vista annoyance: one step forward, three steps back [SOLVED]

Scheduled Pinned Locked Moved The Lounge
csharphelpdatabasequestion
35 Posts 14 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Harvey Saayman

    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

    P Offline
    P Offline
    Pete OHanlon
    wrote on last edited by
    #4

    Try this[^].

    Deja View - the feeling that you've seen this post before.

    My blog | My articles

    H 1 Reply Last reply
    0
    • H Harvey Saayman

      That was my answer to our technician aswell, but sadly we cant tell a customer to change their OS... so i have to make this work

      Harvey Saayman - South Africa Junior Developer .Net, C#, SQL

      you.suck = (you.passion != Programming)

      M Offline
      M Offline
      Mustafa Ismail Mustafa
      wrote on last edited by
      #5

      have fun then :snicker: :laugh:

      Don't forget to vote if the response was helpful


      Sig history "dad" Ishmail-Samuel Mustafa "There's no point questioning the actions of a c0ck-juggling thunderc*nt" From the book of testy commentary by martin_hughes Unix is a Four Letter Word, and Vi is a Two Letter Abbreviation

      1 Reply Last reply
      0
      • H Harvey Saayman

        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

        L Offline
        L Offline
        leppie
        wrote on last edited by
        #6

        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)

        H P 2 Replies Last reply
        0
        • H Harvey Saayman

          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

          P Offline
          P Offline
          Priyatam K
          wrote on last edited by
          #7

          Stop bashing vista for every wrong line of code which someone wrote X| X| PS: Apple rocks!!

          H 1 Reply Last reply
          0
          • H Harvey Saayman

            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

            L Offline
            L Offline
            leppie
            wrote on last edited by
            #8

            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)

            1 Reply Last reply
            0
            • P Pete OHanlon

              Try this[^].

              Deja View - the feeling that you've seen this post before.

              My blog | My articles

              H Offline
              H Offline
              Harvey Saayman
              wrote on last edited by
              #9

              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)

              1 Reply Last reply
              0
              • L leppie

                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)

                H Offline
                H Offline
                Harvey Saayman
                wrote on last edited by
                #10

                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)

                D 1 Reply Last reply
                0
                • H Harvey Saayman

                  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)

                  D Offline
                  D Offline
                  Dalek Dave
                  wrote on last edited by
                  #11

                  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

                  R H B 3 Replies Last reply
                  0
                  • H Harvey Saayman

                    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

                    R Offline
                    R Offline
                    Rajesh R Subramanian
                    wrote on last edited by
                    #12

                    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++]

                    H P E 3 Replies Last reply
                    0
                    • D Dalek Dave

                      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

                      R Offline
                      R Offline
                      Rajesh R Subramanian
                      wrote on last edited by
                      #13

                      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++]

                      1 Reply Last reply
                      0
                      • P Priyatam K

                        Stop bashing vista for every wrong line of code which someone wrote X| X| PS: Apple rocks!!

                        H Offline
                        H Offline
                        Harvey Saayman
                        wrote on last edited by
                        #14

                        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)

                        P 1 Reply Last reply
                        0
                        • R Rajesh R Subramanian

                          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++]

                          H Offline
                          H Offline
                          Harvey Saayman
                          wrote on last edited by
                          #15

                          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)

                          D 1 Reply Last reply
                          0
                          • D Dalek Dave

                            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

                            H Offline
                            H Offline
                            Harvey Saayman
                            wrote on last edited by
                            #16

                            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)

                            D 1 Reply Last reply
                            0
                            • H Harvey Saayman

                              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)

                              D Offline
                              D Offline
                              Dalek Dave
                              wrote on last edited by
                              #17

                              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

                              H 1 Reply Last reply
                              0
                              • D Dalek Dave

                                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

                                H Offline
                                H Offline
                                Harvey Saayman
                                wrote on last edited by
                                #18

                                Dalek Dave wrote:

                                Tick VG!

                                huh?

                                Harvey Saayman - South Africa Junior Developer .Net, C#, SQL

                                you.suck = (you.passion != Programming)

                                D 1 Reply Last reply
                                0
                                • H Harvey Saayman

                                  Dalek Dave wrote:

                                  Tick VG!

                                  huh?

                                  Harvey Saayman - South Africa Junior Developer .Net, C#, SQL

                                  you.suck = (you.passion != Programming)

                                  D Offline
                                  D Offline
                                  Dalek Dave
                                  wrote on last edited by
                                  #19

                                  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

                                  H B 2 Replies Last reply
                                  0
                                  • L leppie

                                    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)

                                    P Offline
                                    P Offline
                                    peterchen
                                    wrote on last edited by
                                    #20

                                    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

                                    L 1 Reply Last reply
                                    0
                                    • R Rajesh R Subramanian

                                      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++]

                                      P Offline
                                      P Offline
                                      Priyatam K
                                      wrote on last edited by
                                      #21

                                      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:

                                      1 Reply Last reply
                                      0
                                      • D Dalek Dave

                                        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

                                        H Offline
                                        H Offline
                                        Harvey Saayman
                                        wrote on last edited by
                                        #22

                                        now i get it :-O

                                        Harvey Saayman - South Africa Junior Developer .Net, C#, SQL

                                        you.suck = (you.passion != Programming)

                                        1 Reply Last reply
                                        0
                                        • H Harvey Saayman

                                          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)

                                          P Offline
                                          P Offline
                                          Priyatam K
                                          wrote on last edited by
                                          #23

                                          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|

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups