crash

How to find out who's causing an access violation error?

I'm getting reports that my app is causing a GPF on some Vista machines. The error message is something like this: access violation at 0x75784062 ( tried to write to 0x00000006) In order to fix this, I first need to know exactly who is causing this GPF: my main exe, some third party component, one of my own activex components, a dll, e...

VS2008 silently dies A LOT when working with WPF

When working in VS2008 (C#) does VS2008 silently crash for anybody when working with WPF? If I touch the XAML it is most likely to crash. I can come back in, clean, then build, then run and it work until I have to touch the XAML again. Then start over again. It is a solution with about 12 projects in it. Thanks, jeff ...

Trace file - how to use it

Hello all, we have an application running on an IIS 6/ASP.NET 2.0 backed by a SQL Server 2005 STD edition X64. From time to time, the application crashes with some silly messages (some of the fileds are not found into a "select firled1, filed2.. from mytable"). I obtained a trace of the activity from the sql server taken while the appli...

Windows Server Crash Dump Analysis

I'm not certain that this is the right venue for this question, but a programmer friend of mine said I should try this here. My company's main application is hosted on a terminal server running Windows Server 2008. Since last Thursday we have seen this server crash and reboot 3 times, and we just went live with this server on the previ...

"Encountered an improper argument" running a Windows XP MFC Ribbon Application

I have developed a Ribbon application on Vista using VS 2008. It works fine on Vista. I statically link MFC so that I can run it on XP too. But when I run it on XP, it puts up a dialog box saying "A required resource was unavailble". Later if I press OK on this dialog, it puts up another one saying "Encountered an improper argument". M...

Can you get rid of the "Microsoft Office Excel has encountered a problem" dialog?

You know the one I mean: Is there a way to disable this? I'm writing an application to automatically test a large number of Excel spreadsheets which are used in a critical environment. Many of these sheets do crazy things which crash Excel. When Excel crashes I want it to terminate ASAP and without user-intervention. I definitely ...

Capturing a memory dump - .NET

Looking for suggestions for a method of capturing a memory dump while a user is running under terminal services. I have tried using "AdPlus" with WinDbg but the application runs under terminal services and it doesn't seem to like that combination. (This is a VB.NET application.) Similar to the following question but needs to allow the...

MASM32 loop

I'm trying to make a loop in masm32 running under Windows Vista, however I did it this way and even though it actually finishes the loop, it crashes and I see no obvious reason why...any ideas? .386 .model flat, stdcall option casemap :none include \masm32\include\windows.inc include \masm32\include\kernel32.inc include \masm32\include...

Why does StackWalk64 return always true?

I tried to make my program dump and save its stack trace when crashes. I installed my own win32 SE handler with _set_se_translator and tried to dump the stack trace with StackWalk64 and finally throw a C++ exception (which actually does the logging when caught). The code looks like this: ... _set_se_handlers(WIN32EXCEPTION::Win32Except...

Is "Dying is Awesome" preferred?

Recently I attended Jeffrey Richter's training courses about .NET. He mentions one strategy of coding "Dying is awesome". That is, don't write "catch (Exception ex)" even at the root of program or event loop. If some exception thrown that is not handled, just let the process die. I'm not sure this is right. Personally, I prefer to have...

How to break bad news to high-ups in other non-IS departments?

Recently we added a couple web service machines, and they couldn't successfully email out. We (IS) did not notice this, and the exceptions were being swallowed up and logged, but no-one noticed for about a month. Needless to say, many purchase orders, and retraction of purchase orders, were never sent out for the past month. While th...

Windbg stack trace issue

Hello everyone, I am debugging a crash dump of managed code, when using !threads to show all threads here, a couple of threads has Exception field value with various exceptions. My question is how to identify which exception is the root exception which causes process crash in a quick way? Any ideas why so many threads are associated wi...

Application failure in Release mode

I have a problem with my ASP.NET application. It has been developed for about a year or so without disabling Debug mode. I wanted to test if it works without debug and it isn't but, when I set debug="true", it works fine. When I try to open application for the first time it gives me "Server not available" error. In the events log I have...

Flash OCX Error crashes IE6/7

Has anyone encountered this error before? I am trying to debug an issue for a client and can not seem to get anywhere with this. With a clear Internet cache I visit http://www.safcoproducts.com and almost every time (on first load) it crashes IE 6 and 7. This does not occur in FireFox. We have tested the same files on a different ser...

How do I obtain crash-data from my Android application?

How can I get crash data (stack traces at least) from my Android application? At least when working on my own device being retrieved by cable, but ideally from any instance of my application running on the wild so that I can improve it and make it more solid. ...

Exception wrapper for Carbon C app in OSX

How can I efficiently catch and handle segmentation faults from C in an OSX Carbon application? Background: I am making an OSX Carbon application. I must call a library function from a third party. Because of threading issues, the function can occasionally crash, usually because it's updating itself from one thread, and it's got some in...

dr watson crash dialog on closing a .NET 2.0 app

We occasionally get a dr watson crash dialog on process exit. The process is .NET 2.0. The dialog is not very helpful. It says that the process stopped working and in the details I can see that it was about System.NullReferenceException, great but where is the traceback? Normally when there is an error in .net process a traceback is pri...

iPhone SDK: POSTing NSData with NSMutableURLRequest results in mysterious crash

I'm seeing a crash that happens 10 or 20 seconds after a POST request I make has finished (didReceiveResponse, didReceiveData and connectionDidFinishLoading all fire well before the crash happens). This is the code I'm using to make the request: NSURL* url = [[NSURL alloc] initWithString:urlString]; [urlString release]; NSData* reques...

iphone sqlite static linking?

Anyone out there statically linking sqlite (as opposed to using the dynamic linking)? I am having issues with users with jailbroken phones not having the same version of sqlite that the stock iPhone assumes (and hence causing crashes). I'm assuming that staticly linking a known version of sqlite in my app is the answer... ...

System.UnauthorizedAccessException in mscorwks.dll causing app pool crashes

My app pools keep randomly crashing in IIS 6.0 MS Debug Diag points to kernel32.dll every time. The entry point is always mscorwks!CreateApplicationContext+bbef and the result is always a System.UnauthorizedAccessException. Stack Trace: Function Arg 1 Arg 2 Arg 3 kernel32!RaiseExc...