G
Guest
Hello,
We run .NET Application on Citrix environment. We use VB.NET, Framework
..NET 1.1. SP1.
Rarely, we get an exception without any obvious reason. Most of the time,
the user does not even work with the application (It is running on background
while he/she is writing a mail for example) or does nothing at all – just
staring at the monitor!
Our working version is that the GC needs more memory and when it tries to
free some resources – something goes wrong. We tried to force this exception
with collecting memory (System.GC.Collect()) - no success. We are going to
try running a separate program which allocates a lot of memory so the GC will
be forced to find some memory.
Please, any ideas, what might cause it (or even better – how to avoid it)
are very welcome since we are running out of ours.
Thanks
Kiril
The Exception is:
Exception: Object reference not set to an instance of an object.
Source: System.Windows.Forms
Call Stack:
at System.Windows.Forms.UnsafeNativeMethods.PeekMessage(MSG& msg,
HandleRef hwnd, Int32 msgMin, Int32 msgMax, Int32 remove)
at
System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32
dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
Some times it is slightly different:
at System.Windows.Forms.UnsafeNativeMethods.GetMessageW(MSG& msg,
HandleRef hWnd, Int32 uMsgFilterMin, Int32 uMsgFilterMax)
at
System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32
dwComponentID, Int32 reason, Int32 pvLoopData)
....(The rest is the same)
or:
at System.Windows.Forms.TimerProc.Invoke(IntPtr hWnd, Int32 msg, IntPtr
wParam, IntPtr lParam)
at System.Windows.Forms.UnsafeNativeMethods.GetMessageW(MSG& msg,
HandleRef hWnd, Int32 uMsgFilterMin, Int32 uMsgFilterMax)
at
System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32
dwComponentID, Int32 reason, Int32 pvLoopData)
...(The rest is the same)
We run .NET Application on Citrix environment. We use VB.NET, Framework
..NET 1.1. SP1.
Rarely, we get an exception without any obvious reason. Most of the time,
the user does not even work with the application (It is running on background
while he/she is writing a mail for example) or does nothing at all – just
staring at the monitor!
Our working version is that the GC needs more memory and when it tries to
free some resources – something goes wrong. We tried to force this exception
with collecting memory (System.GC.Collect()) - no success. We are going to
try running a separate program which allocates a lot of memory so the GC will
be forced to find some memory.
Please, any ideas, what might cause it (or even better – how to avoid it)
are very welcome since we are running out of ours.
Thanks
Kiril
The Exception is:
Exception: Object reference not set to an instance of an object.
Source: System.Windows.Forms
Call Stack:
at System.Windows.Forms.UnsafeNativeMethods.PeekMessage(MSG& msg,
HandleRef hwnd, Int32 msgMin, Int32 msgMax, Int32 remove)
at
System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32
dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
Some times it is slightly different:
at System.Windows.Forms.UnsafeNativeMethods.GetMessageW(MSG& msg,
HandleRef hWnd, Int32 uMsgFilterMin, Int32 uMsgFilterMax)
at
System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32
dwComponentID, Int32 reason, Int32 pvLoopData)
....(The rest is the same)
or:
at System.Windows.Forms.TimerProc.Invoke(IntPtr hWnd, Int32 msg, IntPtr
wParam, IntPtr lParam)
at System.Windows.Forms.UnsafeNativeMethods.GetMessageW(MSG& msg,
HandleRef hWnd, Int32 uMsgFilterMin, Int32 uMsgFilterMax)
at
System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32
dwComponentID, Int32 reason, Int32 pvLoopData)
...(The rest is the same)