StrataFrame Forum

InfoBox unhandled exception

http://forum.strataframe.net/Topic23789.aspx

By Doug Zapp - 7/8/2009

I have an InfoBox that I display to let users know that some processing is taking place (not elegant, but functional). After the processing is done, I want to remove the InfoBox, so I call the CloseAllAlerts method. When running this from VS in debug mode, everything works fine. However, when the runtime EXE is running, I get an unhandled exception from it.



Any ideas?
By Edhy Rijo - 7/8/2009

Hi Doug,



Please post the unhandled exception error.
By Trent L. Taylor - 7/8/2009

Yeah, Edhy is correct in that we need to know what the exception is. Thanks. Smile
By Doug Zapp - 7/8/2009

See the end of this message for details on invoking

just-in-time (JIT) debugging instead of this dialog box.



************** Exception Text **************

System.Threading.ThreadAbortException: Thread was being aborted.

at System.Drawing.SafeNativeMethods.Gdip.FindAtom(String lpString)

at System.Drawing.SafeNativeMethods.Gdip.GdipDisposeImage(HandleRef image)

at System.Drawing.Image.Dispose(Boolean disposing)

at System.Drawing.Image.Dispose()

at MicroFour.StrataFrame.Messaging.InfoBox.AlertForm_FormClosed(Object sender, FormClosedEventArgs e)

at System.Windows.Forms.Form.OnFormClosed(FormClosedEventArgs e)

at System.Windows.Forms.Form.CheckCloseDialog(Boolean closingOnly)





************** Loaded Assemblies **************

mscorlib

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.3082 (QFE.050727-3000)

CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

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

DemeritReport

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/Development/DemeritReport/DemeritReport/bin/Debug/DemeritReport.exe

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

System.Windows.Forms

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

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.3053 (netfxsp.050727-3000)

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.3053 (netfxsp.050727-3000)

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

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

MicroFour StrataFrame UI

Assembly Version: 1.6.0.0

Win32 Version: 1.6.6.0

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/MicroFour%20StrataFrame%20UI/1.6.0.0__99fe9917f71608a7/MicroFour%20StrataFrame%20UI.dll

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

Microsoft.VisualBasic

Assembly Version: 8.0.0.0

Win32 Version: 8.0.50727.3053 (netfxsp.050727-3000)

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll

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

MicroFour StrataFrame Base

Assembly Version: 1.6.0.0

Win32 Version: 1.6.6.0

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/MicroFour%20StrataFrame%20Base/1.6.0.0__99fe9917f71608a7/MicroFour%20StrataFrame%20Base.dll

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

System.Data

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

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

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

System.Xml

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.3082 (QFE.050727-3000)

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

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

MicroFour StrataFrame Business

Assembly Version: 1.6.0.0

Win32 Version: 1.6.6.0

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/MicroFour%20StrataFrame%20Business/1.6.0.0__99fe9917f71608a7/MicroFour%20StrataFrame%20Business.dll

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

System.Web

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.3082 (QFE.050727-3000)

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

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

CrystalDecisions.Windows.Forms

Assembly Version: 10.2.3600.0

Win32 Version: 10.2.51014.0

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.Windows.Forms/10.2.3600.0__692fbea5521e1304/CrystalDecisions.Windows.Forms.dll

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

CrystalDecisions.Shared

Assembly Version: 10.2.3600.0

Win32 Version: 10.2.51014.0

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.Shared/10.2.3600.0__692fbea5521e1304/CrystalDecisions.Shared.dll

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

CrystalDecisions.ReportSource

Assembly Version: 10.2.3600.0

Win32 Version: 10.2.51014.0

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportSource/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportSource.dll

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

System.Configuration

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

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

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

CrystalDecisions.CrystalReports.Engine

Assembly Version: 10.2.3600.0

Win32 Version: 10.2.51014.0

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.CrystalReports.Engine/10.2.3600.0__692fbea5521e1304/CrystalDecisions.CrystalReports.Engine.dll

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

System.Transactions

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

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.3053 (netfxsp.050727-3000)

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

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

CrystalDecisions.ReportAppServer.CommLayer

Assembly Version: 10.2.3600.0

Win32 Version: 10.2.51014.0

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.CommLayer/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CommLayer.dll

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

CrystalDecisions.ReportAppServer.ClientDoc

Assembly Version: 10.2.3600.0

Win32 Version: 10.2.51014.0

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.ClientDoc/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ClientDoc.dll

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

CrystalDecisions.ReportAppServer.DataSetConversion

Assembly Version: 10.2.3600.0

Win32 Version: 10.2.51014.0

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataSetConversion/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataSetConversion.dll

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

CrystalDecisions.ReportAppServer.DataDefModel

Assembly Version: 10.2.3600.0

Win32 Version: 10.2.51014.0

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataDefModel/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataDefModel.dll

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

CrystalDecisions.ReportAppServer.Controllers

Assembly Version: 10.2.3600.0

Win32 Version: 10.2.51014.0

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.Controllers/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.Controllers.dll

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

CrystalDecisions.ReportAppServer.CubeDefModel

Assembly Version: 10.2.3600.0

Win32 Version: 10.2.51014.0

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.CubeDefModel/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CubeDefModel.dll

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

CrystalDecisions.ReportAppServer.ReportDefModel

Assembly Version: 10.2.3600.0

Win32 Version: 10.2.51014.0

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.ReportDefModel/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ReportDefModel.dll

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

CrystalDecisions.KeyCode

Assembly Version: 10.2.3600.0

Win32 Version: 10.2.51014.0

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.KeyCode/10.2.3600.0__692fbea5521e1304/CrystalDecisions.KeyCode.dll

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

System.Web.Services

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

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

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

CrystalDecisions.Web

Assembly Version: 10.2.3600.0

Win32 Version: 10.2.51014.0

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.Web/10.2.3600.0__692fbea5521e1304/CrystalDecisions.Web.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:











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.




By Trent L. Taylor - 7/8/2009

It looks like a ThreadAbortException is occurring. Can you reproduce this outside of your application in a simple sample?
By Doug Zapp - 7/8/2009

Yes I can. Code as follows:



InfoBox.NotifyBoxSettings.CardinalPosition = MessagingCardinalPosition.Center;

InfoBox.NotifyBoxSettings.SpecialEffect = InfoBoxSpecialEffect.Fade;

InfoBox.NotifyBoxSettings.Opacity = 100;

InfoBox.NotifyBoxSettings.Timeout = 999999999;

InfoBox.NotifyBox("Data is being processed. Please wait.");



Then after the processing is done: (Note: in simple app I added a button to call this method)



InfoBox.CloseAllAlerts();
By Trent L. Taylor - 7/8/2009

I'll see if I can reproduce.