locked
An unhandled win32 exception occurred

    Question

  • Dear all,

    I have several high memory usage program running on Windows Server 2003 with
    the latest patches installed.

    Recently I got an error message returned from the visual studio debugger,
    sayings that

                            "An unhandled win32 exception occurred in xxx.exe"

    At first, we were suspecting that the given error was caused by this
    particular exe,
    so ended up we started to do some stress test on it and hope that we could
    reproduce the
    problem again on our side with the same pc configuration, but no luck from
    the test.

    After google-ing around, i read an article stating that

        "..... you may get this error <An unhandled win32 exception occured
         in....>  frequently after you installed Visual Studio / SQL2005 on
    WindowsXP and above......"

               ..... because it changed your windows DEP settings from

        "Turn on DEP for essential Windows programs and  services only"

                                                                    TO

         "Turn on DEP for all programs and services except those i
    selected:......"

     I would like to know that:

        1. Can we just simply change the DEP option back to the first one?

        2. Would there be any side effect if the server has the following
    component installed?
              - Host Integration Server (HIS)
              - Internet Information Services (IIS)
              - SQL Server
              - Clustering Server.

        3. How to ensure that this setting will not be change again by any other
    installers?

     Kindly advice if there are other configurations need to be set to  overcome
    the problem.


    Appreciate for your kind help and assistance

    Thank You
    Regards,
    Viknes

    Friday, December 21, 2007 12:39 PM

Answers

  • Greetings,

    In reply to Ji Cheng Wan, while I was searching for a possible solution
    about the error, I got this site:

    <http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do;jsessionid=E44986ADF16493F1865BBA72848BDEED?cmd=displayKC&docType=kc&externalId=c2019483&sliceId=&dialogID=10714645&stateId=1%200%2010718265>

    which describes a similar problem, except that I am not running Crystal Report.

    One other web site has this:

    --------------------------------------------------------------------------
    I got the solution:

      a.. Right click My PC / Properties.
      b.. Click Advanced Tab
      c.. Under Performance, click Settings
      d.. Click Data Excecution Prevention tab
      e.. Select Turn on DEP for essential Windows programs and services only
      f.. Restart Windows
    This option is selected by default, but with installation of SQL 2005 or
    Visual Studio it changes and start to cause a series of trouble without any
    information to the user.

    Hope this help you.
    ----------------------------------------------------------------------------------

    At System Properties” => “Advanced” => “Performance” “Settings”, the DEP setting is set to "Turn on DEP for all programs  and services except those I select :"


    Regards,
    Viknes


    Monday, January 14, 2008 1:18 AM

All replies

  • Hi Viknes,

     

    I am not aware that Visual Studio will change the DEP settings. It would be best that you perform a test on this.You can look into the “System Properties” => “Advanced” => “Performance” “Settings” to see the DEP settings. Basically it only occurs if the program is trying to execute some data memory blocks. Usually an application will not do that.

     

    Could you please clarify where you read the article stating that "..... you may get this error <An unhandled win32 exception occured in....>  frequently after you installed Visual Studio / SQL2005 on WindowsXP and above......"?

     

    As I understand, you can simply try to add this high memory usage programs to the exception list of DEP. So DEP will not apply to them. There is no need to worry about the other side-effects with turning off DEP.

     

    If you get any issues when trying my suggestions, please try to post back. Thanks. 

     

    Regards,

    Monday, December 24, 2007 8:10 AM
  • Greetings,

    In reply to Ji Cheng Wan, while I was searching for a possible solution
    about the error, I got this site:

    <http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do;jsessionid=E44986ADF16493F1865BBA72848BDEED?cmd=displayKC&docType=kc&externalId=c2019483&sliceId=&dialogID=10714645&stateId=1%200%2010718265>

    which describes a similar problem, except that I am not running Crystal Report.

    One other web site has this:

    --------------------------------------------------------------------------
    I got the solution:

      a.. Right click My PC / Properties.
      b.. Click Advanced Tab
      c.. Under Performance, click Settings
      d.. Click Data Excecution Prevention tab
      e.. Select Turn on DEP for essential Windows programs and services only
      f.. Restart Windows
    This option is selected by default, but with installation of SQL 2005 or
    Visual Studio it changes and start to cause a series of trouble without any
    information to the user.

    Hope this help you.
    ----------------------------------------------------------------------------------

    At System Properties” => “Advanced” => “Performance” “Settings”, the DEP setting is set to "Turn on DEP for all programs  and services except those I select :"


    Regards,
    Viknes


    Monday, January 14, 2008 1:18 AM
  • "Turn on DEP for essential Windows programs and  services only"   

     

    IT WORKS..

     

    thanks a lot

    Tuesday, July 01, 2008 8:33 AM
  • This post already a year old and I hope my new reply get noticed..

    Since I am getting the same error message as "An unhandled win32 exception occurred in ..." But my Performance Settings are not changed at all to " turn on DEp... except those I select:" . My performace settings DEP settings still show the original one but still I am getting this JIT debugger ____.
    Due to this my flexlm tools are creating problems and my matlab's not working at all..........

    Your help would be appreciated!

    Thanks

    -Nikita
    Monday, June 15, 2009 2:26 PM
  • I have the same situation and same problem as Ncharankar 's, needs your kind help.

    Walter
    Sunday, June 21, 2009 10:40 AM
  • Hi, i got the same problem, and i tried your solutions, and it worked, but now suddendly the error has returned and it doesnt seem like that its the same solution this time. any one know what to do?
    Thursday, October 01, 2009 9:22 PM
  • I have a similar error that reads:

    "Visual Studio Just-In-Time Debugger

    An unhandled win32 exception occurred in mscorsvw.exe [3324].  Just-In-Time debugging this exception failed with the following error:  No installed debugger has Just0In-Time debugging enabled.  In Visual Studio, Just-In-Time debugging can be enabled from Tools/Options/Debugging/Just-In-Time.

    Check the documentation index for 'Just-in-Time debugging, errors' for more information."

    I removed Visual Studio from my computer hoping that would fix the problem, but that is obviously no the case.  I do have SQL Server 2005 installed, and Visual Studio 2005 Remote Debugger still shows up in my programs.  Is there a configuration that will stop programs from trying to debug or error report?  Is it possible I need a memory upgrade?

     

    Wednesday, June 23, 2010 8:23 PM
  • hi,

     

    I encountered the same problem.. I've tried all the above quoted solutions... but the problem is still existing..

    Any help is greatly appreciated...

    Thanks in advance :-)

    Friday, October 08, 2010 7:23 AM
  • Same kind of error message here :

     

    Visual Studio Just-in-time debugger

    An unhandled win32 exception occurred in Safari.exe [1524]. Just-in-time debugging exception failed with the following error: No installed debugger has Just-in-time debugging enabled. In visual studio Just In time debugging can be enabled from tools/options/debugging/just-in-time
    Check the documentation index for ‘just in time debugging errors’ for more information.

     

     

    DEP is still at original setting so that's not going to help here.

     

    Though I still found some remaining parts of Visual Studio and cleaned them out.

    Hope that is going to have some effect...

    Tuesday, October 19, 2010 11:06 AM
  • i am having the same problem and i have found out this!

    All programs that use Visual C++ redistributable packages throw this error!!

    HELPPPPP

    Friday, November 26, 2010 9:21 AM
  • Hi ,I found same problem 
    I can not start Apache2.2 and I found error 
    "An unhandled win32 exception occured in httpd.exe"
    But in my case has a little bit solution

    solution:

    My Apache can not start because in my httpd.conf 

    has problem with this line

    LoadModule php5_module "C:/PHP/php5apache2_2.dll"

    after I commented and restart Apache2.2 services again

    it doesn't has any error

    If anyone founds some problems like me 
    You can try to comment some lines in your httpd.conf

    and restart Apache2.2 services again


    A

    Friday, November 26, 2010 9:41 PM
  • Hi,

     

    I am encountering the same problem when I import db2 to Access. From other PC (without installing SQL server 2005), it was sucessful. Since my PC has SQL server client version installed, would that be the reason coused the problem? Please help. I appreciate.

     

    I do tried this solution as below, however, it dosen't work.

    I got the solution:

      a.. Right click My PC / Properties.
      b.. Click Advanced Tab
      c.. Under Performance, click Settings
      d.. Click Data Excecution Prevention tab
      e.. Select Turn on DEP for essential Windows programs and services only
      f.. Restart Windows
    This option is selected by default, but with installation of SQL 2005 or
    Visual Studio it changes and start to cause a series of trouble without any
    information to the user.

    Hope this help you.

    Friday, December 03, 2010 10:01 PM

  • This is what I'm looking for, Many thanks to your description!
    Sunday, January 09, 2011 1:36 AM
  • I AM ALSO FACING THIS PROBLEM IN NFS SHIFT AND NFS SHIFT 2

    AT LOADING THIS ERROR COMES AND ON ANOTHER TAB THE GAME KEEP ON LOADING

    PLEASE HELP ME OUT

    MY EMAIL ID:KARANACHHRA@REDIFFMAIL.COM

    Monday, April 11, 2011 5:38 PM
  • Greetings,

    In reply to Ji Cheng Wan, while I was searching for a possible solution
    about the error, I got this site:

    <http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do;jsessionid=E44986ADF16493F1865BBA72848BDEED?cmd=displayKC&docType=kc&externalId=c2019483&sliceId=&dialogID=10714645&stateId=1%200%2010718265>

    which describes a similar problem, except that I am not running Crystal Report.

    One other web site has this:

    --------------------------------------------------------------------------
    I got the solution:

      a.. Right click My PC / Properties.
      b.. Click Advanced Tab
      c.. Under Performance, click Settings
      d.. Click Data Excecution Prevention tab
      e.. Select Turn on DEP for essential Windows programs and services only
      f.. Restart Windows
    This option is selected by default, but with installation of SQL 2005 or
    Visual Studio it changes and start to cause a series of trouble without any
    information to the user.

    Hope this help you.
    ----------------------------------------------------------------------------------

    At System Properties” => “Advanced” => “Performance” “Settings”, the DEP setting is set to "Turn on DEP for all programs  and services except those I select :"


    Regards,
    Viknes

    It's really helpful for me.....
    Thanks for the valuable information shared with us.................
    Thursday, June 02, 2011 7:25 AM
  • I had to reinstall xp to fix this problem :(
    Visit my blog http://hacktohell.blogspot.com and follow me @hacktohell
    Tuesday, June 07, 2011 7:10 AM
  • I face the same issue while installing Sybase Open Client -- I found that this error is the result of a long environmental pathname. Save the original environmental path - copy it to somewhere - reduce the value, install your application & reset the path back to previous + whatever added new.

     

    It worked for me :)

    TK

    Monday, October 17, 2011 8:35 AM
  • please explain how did u do it....it would be great help for me

    Thanks Vinayak

    Wednesday, June 27, 2012 6:34 AM
  • Greetings,

    In reply to Ji Cheng Wan, while I was searching for a possible solution
    about the error, I got this site:

    <http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do;jsessionid=E44986ADF16493F1865BBA72848BDEED?cmd=displayKC&docType=kc&externalId=c2019483&sliceId=&dialogID=10714645&stateId=1%200%2010718265>

    which describes a similar problem, except that I am not running Crystal Report.

    One other web site has this:

    --------------------------------------------------------------------------
    I got the solution:

      a.. Right click My PC / Properties.
      b.. Click Advanced Tab
      c.. Under Performance, click Settings
      d.. Click Data Excecution Prevention tab
      e.. Select Turn on DEP for essential Windows programs and services only
      f.. Restart Windows
    This option is selected by default, but with installation of SQL 2005 or
    Visual Studio it changes and start to cause a series of trouble without any
    information to the user.

    Hope this help you.
    ----------------------------------------------------------------------------------

    At System Properties” => “Advanced” => “Performance” “Settings”, the DEP setting is set to "Turn on DEP for all programs  and services except those I select :"


    Regards,
    Viknes

    It's really helpful for me.....
    Thanks for the valuable information shared with us.................


    it's really survived me
    Sunday, July 22, 2012 9:42 AM
  • Excelente!!! WORKS, WIndows XP,  Windows 7,  Windows 2003 Server.


    Wednesday, September 26, 2012 4:58 PM
  • This post already a year old and I hope my new reply get noticed..

    Since I am getting the same error message as "An unhandled win32 exception occurred in ..." But my Performance Settings are not changed at all to " turn on DEp... except those I select:" . My performace settings DEP settings still show the original one but still I am getting this JIT debugger ____.
    Due to this my flexlm tools are creating problems and my matlab's not working at all..........

    Your help would be appreciated!

    Thanks

    -Nikita

    Me Too!

    Any help would be appreciated!

    Best Regards

    Emfine

    • Edited by Emfine Monday, November 12, 2012 8:15 AM
    Monday, November 12, 2012 8:14 AM
  •   I got An Unhandled win32 exeception occured in runmidlet.exe while executing j2me program, it goes some steps through emulator if bug or alert msg appears it throws that exeception. So i tried for the above steps(Change to Turn on DEP for all programs  and services except those I select :"), it throws that same exeception before starting to the emulator.
    Tuesday, December 04, 2012 2:00 PM