Exception which can't be caught

C

Christian

Hi!

In my VB.NET app I have an AppException handler which handles all
unhandled exceptions. But recently I have had problems with an exception
thrown after I close the application. This exception isn't caught by my
unhandled exception handler which is really strange.
Here is thread info and call stack when the framework lets me know of
this exception. I attach a file with the following information to, it
may be easier to read in that file.

It seems that it is a component.Finalize that triggers it:

system.dll!System.ComponentModel.Component.Finalize()
it the tries to dispose the flexgrid.

Any ideas?

/Christian

An unhandled exception of type 'System.InvalidOperationException'
occurred in mscorlib.dll

Additional information: LocalDataStoreSlot-lagringen har frigjorts.

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

Call Stack:
mscorlib.dll!System.LocalDataStore.GetData(System.LocalDataStoreSlot
slot = {System.LocalDataStoreSlot}) + 0xaf bytes

mscorlib.dll!System.Threading.Thread.GetData(System.LocalDataStoreSlot
slot = {System.LocalDataStoreSlot}) + 0x41 bytes
system.windows.forms.dll!ThreadContext.FromCurrent() + 0x1a bytes

system.windows.forms.dll!System.Windows.Forms.Application.GetParkingWindow(System.Windows.Forms.Control
control = {C1.Win.C1FlexGrid.C1FlexGrid}) + 0xc6 bytes
system.windows.forms.dll!System.Windows.Forms.Control.CreateHandle()
+ 0x191 bytes
system.windows.forms.dll!System.Windows.Forms.Control.get_Handle() +
0x34 bytes
c1.win.c1flexgrid.dll!C1.Win.C1FlexGrid.Util.16.CI() + 0x55 bytes
c1.win.c1flexgrid.dll!C1.Win.C1FlexGrid.Util.16.CH() + 0x93 bytes

c1.win.c1flexgrid.dll!C1.Win.C1FlexGrid.Util.BaseControls.ScrollableControl.Dispose(bool
disposing = false) + 0x4d bytes
c1.win.c1flexgrid.dll!C1.Win.C1FlexGrid.C1FlexGridBase.Dispose(bool
disposing = false) + 0x1a bytes
system.dll!System.ComponentModel.Component.Finalize() + 0x1d bytes

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

Threads:
620 said:
3312 <No Name> System.LocalDataStore.GetData Highest 0
1300 <No Name> Normal 0


An unhandled exception of type 'System.InvalidOperationException' occurred in mscorlib.dll

Additional information: LocalDataStoreSlot-lagringen har frigjorts.


Call Stack:
mscorlib.dll!System.LocalDataStore.GetData(System.LocalDataStoreSlot slot = {System.LocalDataStoreSlot}) + 0xaf bytes
mscorlib.dll!System.Threading.Thread.GetData(System.LocalDataStoreSlot slot = {System.LocalDataStoreSlot}) + 0x41 bytes
system.windows.forms.dll!ThreadContext.FromCurrent() + 0x1a bytes
system.windows.forms.dll!System.Windows.Forms.Application.GetParkingWindow(System.Windows.Forms.Control control = {C1.Win.C1FlexGrid.C1FlexGrid}) + 0xc6 bytes
system.windows.forms.dll!System.Windows.Forms.Control.CreateHandle() + 0x191 bytes
system.windows.forms.dll!System.Windows.Forms.Control.get_Handle() + 0x34 bytes
c1.win.c1flexgrid.dll!C1.Win.C1FlexGrid.Util.16.CI() + 0x55 bytes
c1.win.c1flexgrid.dll!C1.Win.C1FlexGrid.Util.16.CH() + 0x93 bytes
c1.win.c1flexgrid.dll!C1.Win.C1FlexGrid.Util.BaseControls.ScrollableControl.Dispose(bool disposing = false) + 0x4d bytes
c1.win.c1flexgrid.dll!C1.Win.C1FlexGrid.C1FlexGridBase.Dispose(bool disposing = false) + 0x1a bytes
system.dll!System.ComponentModel.Component.Finalize() + 0x1d bytes

Threads:
620 said:
3312 <No Name> System.LocalDataStore.GetData Highest 0
1300 <No Name> Normal 0
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top