.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Unexplained Crash on .NET Windows Form, Potentially a Common Crash?

Posted By:      Posted Date: August 28, 2010    Points: 0   Category :.NET Framework
Hi, I have a continuous problem with a .NET Framework 3.5 Windows Form application crashing with the "...this application has performed an illegal error..." error message.  No errors are being caught through a Try-Catch (using a generic Exception, so to my knowledge it should catch any exception?) block throughout the application, so it appears to be something external.  At first we thought it may have been the users computer, but even after a replacement computer the same error continues.   I was just wondering if there are any common crashes which have any hotfixes etc. for .NET Framework 3.5? Or if anyone else has experienced anything similar?   Thanks

View Complete Post

More Related Resource Links

mscorwks.dll causes Windows-Service crash

Hello Our Windows-Service application crashed 3 times the last 4 months in different intervals. EventLog says: server.exe, version, stamp 4bd6ecf0, faulting module mscorwks.dll, version 2.0.50727.3603, stamp 4a7cd88e, debug? 0, fault address 0x0010969f.For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. There is no more information about the crash than this EventLog entry. Windows-Service is stopped, resp. the process isn't running any more. OS: Microsoft Windows Server 2003 R2 .Net Framework: 3.5 SP1 Windows-Service logs on with specific account Is there a possibility to obtain the source code line out of the stamp address provided in the EventLog message? Any clues how to get more details about past and forthcoming crashes? Thanks for help!

SharePoint Designer Crash when trying to add a New Item Form



I am running WSS 3.0 on a Windows 2008 Server 64bit.  This runs our intranet which has been going for about 6 months.  I have used SharePoint Designer 2007 to make basic edits to pages.

SPD2007 has been crashing when I do the following:

I created a links list called 'Tester Links'.  I created a new .aspx page in SharePoint Designer 2007, linked it to the default master page then inserted a 'Data View'.  I chose 'Tester Links' from Data Source details then clicked Show Data.  I selected a couple of fields, went to 'Insert Selected Fields As' and chose 'New Item Form'.

SharePoint Designer 2007 then crashes with the error 'Microsoft SharePoint Designer has stopped working'

I tried creating a new Web Application and site collection, then created a new links list however still the same crashing.

I tried using SPD2007 on both the server that WSS is on and my own client machine.  I have also logged in as myself (domain admin) and the administrator however I still can't create a new item form! 

Any ideas?

Thanks in advance for your help.

crash seen in sql server 2005 on windows 2003 server in Itanium 64 bit

 Defaulted to export symbols for C:\Program Files\Common Files\System\Ole DB\sqloledb.dll -
function: sqloledb!SQLDebug
        000006fa`fa480538        nop.b  0 ;;

        000006fa`fa480540        ld8.a  r73=[r29]
        000006fa`fa480544        setf.sig f6=r27
        000006fa`fa480548        addl   r63=ffffffff`ffffffff, r0

        000006fa`fa480550        setf.sig f7=r28
        000006fa`fa480554        cmp.eq.unc p15, p14=r0, r36
        000006fa`fa480558 (p15)  br.cond.dpnt.many sqloledb!SQLDebug+23060 (000006fa`fa480570) ;;

FAULT ->000006fa`fa480560        st8    [r36]=r63
        000006fa`fa480564        nop.m  0
        000006fa`fa480568   &

Windows Service crash - catch exception


A windows service written in C# is intermittently crashing on a server. If I want to log the reason for crash, can I add try catch block in OnStop method?

will onStop  method get initiated on crashing?

protected override void OnStop()

System.Windows.Media.FontFamily crash (.NET 3.5 SP1) (System.ExecutionEngineException)


Hi folks,

Just had a long afternoon debugging a potential bug in WPF (.NET 3.5 SP1 rev. 3.5.30729.4926).

It seems System.Windows.Media.FontFamily.get_FirstFontFamily() doesn't like so much when fonts are missing on your device. Our device is a Windows Embedded Standard 7 with only the Western Fonts package. When I copied all the fonts we have to Windows 7 Ultimate into the device's Fonts directory, the issue was solved. 

It started with a System.Windows.UIElement.Measure() call which crashed into a System.ExecutionEngineException. 

After some debugging (call stack is below), I realized System.Windows.Media.FontFamily.get_FirstFontFamily crashed the whole CLR because in my opinion it was not finding any of the fallback fonts (Truetype ?).

I guess this would require a fix sometime :-).



Call Stack

0:011> !CLRStack

OS Thread Id: 0x5d4 (11)

ESP       EIP     

0705cf9c 75db194b [HelperMethodFrame_1OBJ: 0705cf9c] System.Environment.FailFast(System.String)

0705cff8 6c2b68b9 MS.Internal.Invariant.FailFast(System.String, System.String)


Why does my program crash when I use comboBoxCities.Visibility = System.Windows.Visibility.Hidden;



I have a combobox and I have an event for it called comboBoxCountry_SelectionChanged when I add the following code to event the program crashes when its trying to start "comboBoxCities.Visibility = System.Windows.Visibility.Hidden;"

I have pasted the c# and xaml code below


C# code


  private void comboBoxCountry_SelectionChanged(object sender, SelectionChangedEventArgs e)
   comboBoxCities.Visibility = System.Windows.Visibility.Hidden;
   labelCity.Visibility = System.Windows.Visibility.Hidden;

   if (comboBoxCountry.SelectedItem.ToString().Contains("United States"))
    comboBoxCities.Visibility = System.Windows.Visibility.Visible;
    labelCity.Visibility = System.Windows.Visibility.Visible;

   else if (comboBoxCountry.SelectedItem.ToString().Contains("Canada"))
    comboBoxCities.Visibility = System.Windows.Visibility.Visible;
    labelCity.Visibility = System.Windows.Visibility.Visible;

XAML code

Crash Course: Analyze Crashes to Find Security Vulnerabilities in Your Apps


Here the authors analyze program crashes to help you understand if you have the potential for read or write violations in your applications, and how they can lead to security vulnerabilities.

A. Abouchaev, D. Hasse, S. Lambert, and G. Wroblewski

MSDN Magazine November 2007

Visual C++ 6.0: Don't Let Memory Allocation Failures Crash Your Legacy STL Application


Most C++ developers make extensive use of the Standard Template Library (STL) in their code. If you are one of them and are using STL and Visual C++ 6.0 directly out of the box, your application is at high risk of crashing under low memory conditions. The problem arises because checking for failure of operator new is such an uncommon practice. To make things worse, when new does fail, the response is not standard. Some language compilers return NULL while others throw an exception.In addition, if you are using STL in an MFC project, be aware that MFC has its own set of rules. This article discusses these problems, explains how the default behavior has changed in Visual C++ .NET 2003, and outlines the changes you must make if you're using Visual C++ 6.0 so that you can safely use the STL when operator new fails.

James Hebben

MSDN Magazine September 2003

SharePoint Workspace 2010 Crash



I was redirected from Office forum to here, hope someone can help. The Problem is:


When trying to access certain account in Office SharePoint Workspace 2010, the user gets the following error:

Problem signature:

  Problem Event Name:                        APPCRASH

  Application Name:                             GROOVE.EXE

  Application Version:                    &nb

Windows authentication login form issue


Hi guys,

I have an application that requires windows authentication to login, the problem is that every time an user logs in under IE and win XP, the username is pre filled with the IP address of the server as instance and the username. I need to replace the server ip with  XXXX instance name instead of doing this manually.

Could anyone pleas help me out with this one?

Thanks in advance,


Open a windows application form names in another

Hi, Now i am in a horrible situation. I want to create an application for open another application(exe) and display all the form names in newly opened application in a compobox.If we selected a compobox item,ie;a form name in new application opened,i want to display all the control names in that form... is it possible? we can do it in same application.but how can i do it in another application? thanks in advance   Anoop

Possible to truly "scale" a Windows Form?

Hi all! I'm trying to think of a way to truly "scale" a Windows Form. I don't just mean resize the form and rearrange the controls accordingly; I mean really "Honey I shrunk the form!" type of shrink, including all text and graphics, as if they had been drawn on a Graphics object with a scale transform less than 1. Aero does this when it shows a shrunken window preview icon... that's exactly what I want, except I want it to happen to the window itself as the user resizes it. I know WPF can do this, but I need a way that'll work on a standard Windows Form without rewriting or massively re-engineering the UI. Any creative ideas? Thanks in advance! :-D

XBAP causing IE crash?

Our application is a C# XBAP.  Near as I can tell, the problem we are running into seems to be within IE rather than our code, so I tried looking for an appropriate IE forum, but the best I could find was "Internet Explorer Extension Development" and I got no response there, so trying here instead. Our application consists of a main IE instance (which contains the XBAP).  From the C# code in this XBAP, we obtain a reference to the IHtmlWindow2 object.  From that, we periodically call .open(...) to launch various other dialogs of interest to the user.  These dialogs typically contain a fair amount of Javascript as well. Our users began reporting random crashes, some with IE7, some with IE8.  I have been able to recreate a similar crash on my development system (Windows 7, IE8, Visual Studio 2010). Upon crashing, no information is sent to Event Viewer, and nothing is caught by our C# Exception handling either - IE simply exits.  I had to attach a native debugger (rather than managed) to get anything on this.  The debugger gave me the following error: Unhandled exception at 0x61755473 (mshtml.dll) in iexplore.exe: 0xC0000005: Access violation reading location 0xfeeefeee.   The error is apparently occuring in a native thread with the following callstack:      mshtml.dll!CRunPtrBase::SetRun()  + 0x3a b

Transfering Data from Windows form application to a website

Hello Friends I have a windows form application and i have to transfer the data from my forms that have been retrieved from SQL server database to a website. So that i can automate the data entry on the website. Can anybody please tell how should i go about doing this. Thanks & Regards, Syed

IIS Crash with Faulting application w3wp.exe, faulting module mscorwks.dll, version 2.0.50727.42

The scenario is that, a .Net Webservice is making calls to C++ DLL (made from VC6 studio) This app works perfectly well for sometimes or over a period or for a high volume of hits and suddenly you see IIS crash along with service crash with the following error "Faulting application w3wp.exe, faulting module mscorwks.dll, version 2.0.50727.42" There is no pattern for this problem. The work around is to restart the IIS.    Can anybody tell me what could be the issue here?

how do i create a windows form application login for to validate username and password from sql serv

 I would like to know how I can create a login form for my windows form application. The login form must be linked to a SQL server 2005 express edition database (in which the username and passwords are stored). The login form must validate the user using the database and allow them to access the program. 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend