binkle
12-Feb-2010, 08:57 AM
Hi,
I have a simple windows forms app for testing:
static class InstallProgram
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(String[] args)
{
EurekaLogSystem.ExceptionHandler.Activate();
//Jam.Utils.Eurekalog.ApplyStandardSettings(Jam.Util s.Constants.AppVarExchangeServerToolbox + Jam.Utils.Constants.EMailAppendix);
string text = null;
text.Clone();//invoke exception for testing
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(fals e);
InstallForm eSTInstForm = new InstallForm();
eSTInstForm.DeInstallation = args.Length > 0;
Application.Run(eSTInstForm);
}
}
Running that code I get an internal Eurekalog exception in the invoking the NullReferenceException:
EurekaLog.NET crash dump on: 2010-02-12_09-01-01
Exception message:
Ungültiger threadübergreifender Vorgang: Der Zugriff auf das Steuerelement erfolgte von einem anderen Thread als dem Thread, für den es erstellt wurde.
Call stack:
bei System.Windows.Forms.Control.get_Handle()
bei EurekaLogSystem.SystemInfo.GetScreenDpi() in c:\Works\Sync Folder\Sources\EurekaLog for Visual Studio\Run-Time\SystemInfo.cs:Zeile 572.
bei EurekaLogSystem.Log.LogBuilder.GenerateLogEnties(E xceptionData& exceptData) in c:\Works\Sync Folder\Sources\EurekaLog for Visual Studio\Run-Time\Log\LogBuilder.cs:Zeile 253.
bei EurekaLogSystem.Dialogs.Main.DialogLauncher.Displa yExceptionDialog(ExceptionData exceptData) in c:\Works\Sync Folder\Sources\EurekaLog for Visual Studio\Run-Time\Dialogs\Main\DialogLauncher.cs:Zeile 104.
bei EurekaLogSystem.ExceptionHandler.InternalHandleExc eption(Exception ex, Boolean isAspNet) in c:\Works\Sync Folder\Sources\EurekaLog for Visual Studio\Run-Time\ExceptionHandler.cs:Zeile 525.
bei EurekaLogSystem.ExceptionHandler.unhandledExceptio nFunction(Object sender, UnhandledExceptionEventArgs args) in c:\Works\Sync Folder\Sources\EurekaLog for Visual Studio\Run-Time\ExceptionHandler.cs:Zeile 196.
Please comment this "invalid Cross-Thread operation" bug!
Greetings
Harry
I have a simple windows forms app for testing:
static class InstallProgram
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(String[] args)
{
EurekaLogSystem.ExceptionHandler.Activate();
//Jam.Utils.Eurekalog.ApplyStandardSettings(Jam.Util s.Constants.AppVarExchangeServerToolbox + Jam.Utils.Constants.EMailAppendix);
string text = null;
text.Clone();//invoke exception for testing
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(fals e);
InstallForm eSTInstForm = new InstallForm();
eSTInstForm.DeInstallation = args.Length > 0;
Application.Run(eSTInstForm);
}
}
Running that code I get an internal Eurekalog exception in the invoking the NullReferenceException:
EurekaLog.NET crash dump on: 2010-02-12_09-01-01
Exception message:
Ungültiger threadübergreifender Vorgang: Der Zugriff auf das Steuerelement erfolgte von einem anderen Thread als dem Thread, für den es erstellt wurde.
Call stack:
bei System.Windows.Forms.Control.get_Handle()
bei EurekaLogSystem.SystemInfo.GetScreenDpi() in c:\Works\Sync Folder\Sources\EurekaLog for Visual Studio\Run-Time\SystemInfo.cs:Zeile 572.
bei EurekaLogSystem.Log.LogBuilder.GenerateLogEnties(E xceptionData& exceptData) in c:\Works\Sync Folder\Sources\EurekaLog for Visual Studio\Run-Time\Log\LogBuilder.cs:Zeile 253.
bei EurekaLogSystem.Dialogs.Main.DialogLauncher.Displa yExceptionDialog(ExceptionData exceptData) in c:\Works\Sync Folder\Sources\EurekaLog for Visual Studio\Run-Time\Dialogs\Main\DialogLauncher.cs:Zeile 104.
bei EurekaLogSystem.ExceptionHandler.InternalHandleExc eption(Exception ex, Boolean isAspNet) in c:\Works\Sync Folder\Sources\EurekaLog for Visual Studio\Run-Time\ExceptionHandler.cs:Zeile 525.
bei EurekaLogSystem.ExceptionHandler.unhandledExceptio nFunction(Object sender, UnhandledExceptionEventArgs args) in c:\Works\Sync Folder\Sources\EurekaLog for Visual Studio\Run-Time\ExceptionHandler.cs:Zeile 196.
Please comment this "invalid Cross-Thread operation" bug!
Greetings
Harry