Groups | Blog | Home
all groups > dotnet drawing api > november 2007 >

dotnet drawing api : Out of memory ONLY on customer's computer


Kristijan Marin
11/15/2007 10:45:02 AM
Hi,

I have a big problem .... that only occures on my customer computers ....

There is no pattern when the error will popup .... it can after 30 seconds
or after minuter or more ..... the thing is that even if the user doesn't do
anything , he/she goes on a break or something the error pops-up ...
Bellow is the full text of the exception ......

The thing is that I have try-catch everywhere ... even in Program.cs file so
the starting file ... but i'm unable to catch this error

unless i should set my try-catch(Exception e) to something else ......
"Exception" will catch all the exceptions right ?

Environment: Windows XP SP2
Developer : VS 2005 C#
Framework: .NET 2.0

My customers environment is the same .... Win XP SP2 & .NET Framework 2.0
......

A don't know what and where to look anymore ....

Any help, hints would be really appreciated .....


BR,
Krispi

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.FromHwndInternal(IntPtr hwnd)

at System.Windows.Forms.Control.GetHRgn(Region region)

at System.Windows.Forms.Control.OnHandleCreated(EventArgs e)

at System.Windows.Forms.Control.WmCreate(Message& m)

at System.Windows.Forms.Control.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

----------------------------------------

Administracija

Assembly Version: 1.0.0.0

Win32 Version: 2.0.0.0

CodeBase:
file:///C:/Program%20Files/Media%20Solutions/CATI/Administracija.exe

----------------------------------------

PureComponents.ActionSet.Navigators

Assembly Version: 4.0.316.0

Win32 Version: 4.0.316.0

CodeBase:
file:///C:/Program%20Files/Media%20Solutions/CATI/PureComponents.ActionSet.Navigators.DLL

----------------------------------------

PureComponents.ActionSet.RibbonUI

Assembly Version: 1.1.207.0

Win32 Version: 1.1.207.0

CodeBase:
file:///C:/Program%20Files/Media%20Solutions/CATI/PureComponents.ActionSet.RibbonUI.DLL

----------------------------------------

PureComponents.EntrySet.Common

Assembly Version: 2007.1.530.0

Win32 Version: 2007.1.530.0

CodeBase:
file:///C:/Program%20Files/Media%20Solutions/CATI/PureComponents.EntrySet.Common.DLL

----------------------------------------

System.Windows.Forms

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.42 (RTM.050727-4200)

CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

----------------------------------------

System

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.42 (RTM.050727-4200)

CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

----------------------------------------

System.Drawing

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.42 (RTM.050727-4200)

CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

----------------------------------------

System.Xml

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.42 (RTM.050727-4200)

CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

----------------------------------------

Common

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/Program%20Files/Media%20Solutions/CATI/Common.DLL

----------------------------------------

DBConnetionDll

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase:
file:///C:/Program%20Files/Media%20Solutions/CATI/DBConnetionDll.DLL

----------------------------------------

PureComponents.EntrySet.Controls

Assembly Version: 2007.1.530.0

Win32 Version: 2007.1.530.0

CodeBase:
file:///C:/Program%20Files/Media%20Solutions/CATI/PureComponents.EntrySet.Controls.DLL

----------------------------------------

System.Configuration

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.42 (RTM.050727-4200)

CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

----------------------------------------

System.Data

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.42 (RTM.050727-4200)

CodeBase:
file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll

----------------------------------------

System.Transactions

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.42 (RTM.050727-4200)

CodeBase:
file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll

----------------------------------------

System.EnterpriseServices

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.42 (RTM.050727-4200)

CodeBase:
file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll

----------------------------------------

Accessibility

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.42 (RTM.050727-4200)

CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

----------------------------------------

************** JIT Debugging **************

To enable just-in-time (JIT) debugging, the .config file for this

application or computer (machine.config) must have the

jitDebugging value set in the system.windows.forms section.

The application must also be compiled with debugging

enabled.

For example:

<configuration>

<system.windows.forms jitDebugging="true" />

</configuration>

When JIT debugging is enabled, any unhandled exception

will be sent to the JIT debugger registered on the computer

rather than be handled by this dialog box.





Kristijan Marin
11/15/2007 11:11:27 AM
fogot to tell .....

I'm not drawing anything by my self , so no image or something .... the only
thing that comes to my mind is that i'm using classes from
PureComponents that are drawing form controls(buttons,window,etc...) ....

Thx,
Krispi

Robert
11/17/2007 11:27:46 AM
[quoted text, click to view]

Update the video drivers if possible. Maybe a screensaver issue?

Corrupted images can give OOM in the internal .Net classes.

AddThis Social Bookmark Button