Red X of death

I receive the Red X of death when I'm working with SQL Server 2005 community edition. Microsoft Money is causing this to happen. Whenever I move my mouse over an entry in Microsoft Money, I get an OutOfMemoryException and then all the windows in SQL Server 2005 community edition get a big red X. SQL Server 2005 community edition at that point is either not usable or it bombs on it's own.

I wrote a budgeting application for my family's use and I was using Access with no problems, but then I upgraded. It's important for me to run queries while using Microsoft Money.

Anyway, I'm looking for suggestions to keep this from happening. Here are the details.

OS: Windows XP with Service Pack II (all patches installed)
Microsoft Money 2005

My computer has 1 GB of RAM. While duplicating the issue I had three applications open: SQL Server, Money, Task Manager. As the exception occurred, CPU: 2% Memory: 300MB of 1GB in use. Why an OutOfMemoryException, I'm only at 1/3?

Exception details below, but any help would be wonderful,
Todd

Exception details (only a little bit):

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.OutOfMemoryException: Out of memory.
at System.Drawing.Graphics.FromHdcInternal(IntPtr hdc)
at System.Windows.Forms.PaintEventArgs.get_Graphics()
at System.Windows.Forms.Control.PaintBackColor(PaintEventArgs e, Rectangle rectangle, Color backColor)
at System.Windows.Forms.Control.PaintBackground(PaintEventArgs e, Rectangle rectangle, Color backColor, Point scrollOffset)
at System.Windows.Forms.Control.PaintBackground(PaintEventArgs e, Rectangle rectangle)
at System.Windows.Forms.Control.OnPaintBackground(PaintEventArgs pevent)
at System.Windows.Forms.ScrollableControl.OnPaintBackground(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.OnPrint(PaintEventArgs e)
at System.Windows.Forms.Control.WmPrintClient(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.UserControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
-
Microsoft.SqlServer.Express.AppIDPackage
Assembly Version: 9.0.242.0
Win32 Version: 9.00.2040.00
CodeBase:file:///C:/Program%20Files/Microsoft%20SQL%20Server/90/Tools/Binn/VSShell/Common7/IDE/Microsoft.SqlServer.Express.AppIDPackage.DLL
-
Microsoft.SqlServer.Express.VSIntegration
Assembly Version: 9.0.242.0
Win32 Version: 9.00.2040.00
CodeBase:file:///C:/Program%20Files/Microsoft%20SQL%20Server/90/Tools/Binn/VSShell/Common7/IDE/Microsoft.SqlServer.Express.VSIntegration.DLL
-
Microsoft.VisualStudio.Shell.Interop
Assembly Version: 7.1.40304.0
Win32 Version: 7.0.4054
CodeBase:file:///C:/WINDOWS/assembly/GAC/Microsoft.VisualStudio.Shell.Interop/7.1.40304.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Shell.Interop.dll
-
Microsoft.VisualStudio.OLE.Interop
Assembly Version: 7.1.40304.0
Win32 Version: 7.0.4054
CodeBase:file:///C:/WINDOWS/assembly/GAC/Microsoft.VisualStudio.OLE.Interop/7.1.40304.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.OLE.Interop.dll
-

[4717 byte] By [codingmonkey] at [2007-12-22]
# 1

SQL Server Community Edition?

Have you resolve this issue? It sounds like you're talking about Management Studio Express, in which case I'd recomend you file this issue using the Feedback option on the Community menu within the product. I can't think of any interaction between Management Studio Express and Money that would cause this.

Regards,

Mike

MikeWachal-MSFT at 2007-8-30 > top of Msdn Tech,SQL Server,SQL Server Express...
# 2
Hi Mike,

I believe that this is a more general problem with MS Money and any .NET application; I've found a number of similar references elsewhere on the net in searching for a solution since I'm encountering this very same issue.

As far as I can tell, to reproduce

Run .Net application (not minimized)
Run MS Money
In MS Money, within a account page, have an entry that has additional data that causes a Tooltip to appear (for example, a paycheck with tax info, etc).
As soon as you place your mouse over the entry, WM_PAINT messages are sent to the other .Net application(s) with the e.Graphics object throwing an OutOfMemoryException.

I don't know whether other .Net application can reproduce this exception throwing behaviour.

AndrewAbrahamowicz at 2007-8-30 > top of Msdn Tech,SQL Server,SQL Server Express...
# 3

Thanks Andrew,

I just got confirmation from the Money team that they are aware of the issue and are investigating.

Regards,

Mike

MikeWachal-MSFT at 2007-8-30 > top of Msdn Tech,SQL Server,SQL Server Express...
# 4

Andrew, I agree with you 100%. I finally realized I can turn the tooltips off in Money 2007 (upgrading from 2005 to 2007 didn't make a difference).

The WM_PAINT message also caused me problems in all of my custom .NET applications.

I happy to hear someone is taking a look at it.

Thanks for your time,

Todd

codingmonkey at 2007-8-30 > top of Msdn Tech,SQL Server,SQL Server Express...

SQL Server

Site Classified