Details
-
Bug
-
Resolution: Fixed
-
Major
-
1.4.0
-
None
-
Operating System: Windows 8
Platform: Intel
Description
Guzzi idea :
Adding this in GUIWindow.cs in Loadskin() allow easily to find calls for GUI not coming from main thread.
Could be in a "if debug" if we want to make sure it is not running in non debug mode ...
h4. Additional Information
// add thread check to log calls not running in main thread/GUI
int iCurrentThread = Thread.CurrentThread.ManagedThreadId;
if (iCurrentThread != 1)
{
Log.Error("LoadSkin: Running on thread <{0}> instead of main thread - StackTrace: '{1}'", iCurrentThread, Environment.StackTrace);
}
Adding this in GUIWindow.cs in Loadskin() allow easily to find calls for GUI not coming from main thread.
Could be in a "if debug" if we want to make sure it is not running in non debug mode ...
h4. Additional Information
// add thread check to log calls not running in main thread/GUI
int iCurrentThread = Thread.CurrentThread.ManagedThreadId;
if (iCurrentThread != 1)
{
Log.Error("LoadSkin: Running on thread <{0}> instead of main thread - StackTrace: '{1}'", iCurrentThread, Environment.StackTrace);
}