S
Smokey Grindel
I have an error I absolutely can not track down the cause of... users will
use our program for hours at a time with no problem, minimize it and go to
work on something else such as using outlook or IE then boom out of no
where..... and very randomly.....
System.AccessViolationException: Attempted to read or write protected
memory. This is often an indication that other memory is corrupt.
and this ONLY ever happens when the app is minimized....
is this somehow a side effect of the app freeing up memory when minimized? I
thought I read once windows will "clean up" (page out) app memory when an
app is minimized and idle... could this be causing this? I've never
reproduced it but everyone else here using the app seems to be able to...
unfortunately for me.....
here is the full exception
Exception Information:
System.AccessViolationException: Attempted to read or write protected
memory. This is often an indication that other memory is corrupt.
at System.Windows.Forms.UnsafeNativeMethods.PeekMessage(MSG& msg, HandleRef
hwnd, Int32 msgMin, Int32 msgMax, Int32 remove)
at
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32
dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32
reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32
reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(ApplicationContext context)
at CompanyName.AppName.MainApplication.Start() in
D:\Development\appnamehere\Trunk\app\MainApplication.vb:line 321
and the line it references is just the Application.Run(appContext) command
which ran perfectly until minimized for some time...
any help or direction on where to look would REALLY help out a lot! thanks!
use our program for hours at a time with no problem, minimize it and go to
work on something else such as using outlook or IE then boom out of no
where..... and very randomly.....
System.AccessViolationException: Attempted to read or write protected
memory. This is often an indication that other memory is corrupt.
and this ONLY ever happens when the app is minimized....
is this somehow a side effect of the app freeing up memory when minimized? I
thought I read once windows will "clean up" (page out) app memory when an
app is minimized and idle... could this be causing this? I've never
reproduced it but everyone else here using the app seems to be able to...
unfortunately for me.....
here is the full exception
Exception Information:
System.AccessViolationException: Attempted to read or write protected
memory. This is often an indication that other memory is corrupt.
at System.Windows.Forms.UnsafeNativeMethods.PeekMessage(MSG& msg, HandleRef
hwnd, Int32 msgMin, Int32 msgMax, Int32 remove)
at
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32
dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32
reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32
reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(ApplicationContext context)
at CompanyName.AppName.MainApplication.Start() in
D:\Development\appnamehere\Trunk\app\MainApplication.vb:line 321
and the line it references is just the Application.Run(appContext) command
which ran perfectly until minimized for some time...
any help or direction on where to look would REALLY help out a lot! thanks!