Out of memory ONLY on customer's computer

  • Thread starter Thread starter Kristijan Marin
  • Start date Start date
K

Kristijan Marin

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.
 
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
 
I would say that somebody isn't cleaning the resources properly.
The best diagnostics method would be to use allocation profiler to find out
who is the culprit.
BTW try-catch blocks won't help as this happens in window painting (judging
from the stack trace) - you could attach a global exception handler but it
wouldn't help you.
 
Hi,

But why this only happens on some mashines and not even ones on my laptop
nor desktop
mashine nor on customer laptop, but just on customer desktop mashines ...

desktop's have more then 1G RAM so this can't be the problem, cause
customers Laptop has
only 512MB and exception never occures ...

The only difference that I know now is that desktop's have Core Duo CPU
.......

Thx,
Krispi

Miha Markic said:
I would say that somebody isn't cleaning the resources properly.
The best diagnostics method would be to use allocation profiler to find
out who is the culprit.
BTW try-catch blocks won't help as this happens in window painting
(judging from the stack trace) - you could attach a global exception
handler but it wouldn't help you.

--
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

Kristijan Marin said:
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 ?
 
There is probably unmanaged resource leakeage somewhere. Perhaps some third
party controls leak only on certain configurations.

--
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

Kristijan Marin said:
Hi,

But why this only happens on some mashines and not even ones on my laptop
nor desktop
mashine nor on customer laptop, but just on customer desktop mashines ...

desktop's have more then 1G RAM so this can't be the problem, cause
customers Laptop has
only 512MB and exception never occures ...

The only difference that I know now is that desktop's have Core Duo CPU
......

Thx,
Krispi

Miha Markic said:
I would say that somebody isn't cleaning the resources properly.
The best diagnostics method would be to use allocation profiler to find
out who is the culprit.
BTW try-catch blocks won't help as this happens in window painting
(judging from the stack trace) - you could attach a global exception
handler but it wouldn't help you.

--
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

Kristijan Marin said:
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 ?
 
Back
Top