Visual Studio Development Bookmark and Share   
 index > Installing and Registering Visual Studio Express Editions > An unhandled win32 exception occurred
 

An unhandled win32 exception occurred

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

Viknes  Friday, December 21, 2007 12:39 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�=> �strong>Advanced�=> �strong>Performance��strong>Settings� the DEP setting is set to "Turn on DEP for all programs and services except those I select :"


Regards,
Viknes


Viknes  Monday, January 14, 2008 1:18 AM

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 �strong>System Properties�=> �strong>Advanced�=> �strong>Performance��strong>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 toadd 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,

Ji Cheng Wang - MSFT  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�=> �strong>Advanced�=> �strong>Performance��strong>Settings� the DEP setting is set to "Turn on DEP for all programs and services except those I select :"


Regards,
Viknes


Viknes  Monday, January 14, 2008 1:18 AM

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

IT WORKS..

thanks a lot

rfnkrmn  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
Ncharankar  Monday, June 15, 2009 2:26 PM
I have the same situation and same problem as Ncharankar 's, needs your kind help.

Walter
wthsu  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?
thompy  Thursday, October 01, 2009 9:22 PM

You can use google to search for other answers

Custom Search

More Threads

• Installing VS Express without sp2
• SqlDataSource control goes AWOL
• Uninstalling express editions
• Please direct me to the right place...
• Downloading Express Editions - Help!
• download page doesn't
• Where exactly is MSDN Express Library?
• Server Error in '/' Application Failed to map the path
• Frozen uninstallation of Visual Basic 2005 Express Edition - ENU
• Installation of Service Pack 1 for selected Visual Studio Express components