divyang4481 / bizhawk

Automatically exported from code.google.com/p/bizhawk
0 stars 0 forks source link

Exception when launching bizhawk on small screen resolution #290

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using Bizhawk in fullscreen on a CRT screen to have the most "accurate" 
experience.

Unfortunately an exception is raised due to the small resolution (you can test 
it with 320x200 for ex.)
One the exception is closed, the emu is running fine.

Here is the stack trace :

************** Texte de l'exception **************
System.NullReferenceException: La référence d'objet n'est pas définie à une 
instance d'un objet.
   à BizHawk.Client.Common.Global.get_SystemInfo()
   à BizHawk.Client.EmuHawk.MainForm.SetWindowText()
   à BizHawk.Client.EmuHawk.MainForm.<.ctor>b__e(Object o, EventArgs e)
   à System.EventHandler.Invoke(Object sender, EventArgs e)
   à System.Windows.Forms.Control.OnResize(EventArgs e)
   à System.Windows.Forms.Form.OnResize(EventArgs e)
   à System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
   à System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
   à System.Windows.Forms.Control.UpdateBounds()
   à System.Windows.Forms.Control.WmCreate(Message& m)
   à System.Windows.Forms.Control.WndProc(Message& m)
   à System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   à System.Windows.Forms.Form.WmCreate(Message& m)
   à System.Windows.Forms.Form.WndProc(Message& m)
   à BizHawk.Client.EmuHawk.MainForm.WndProc(Message& m)
   à System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   à System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Original issue reported on code.google.com by baptiste...@gmail.com on 16 Oct 2014 at 3:22

GoogleCodeExporter commented 9 years ago

Original comment by baptiste...@gmail.com on 16 Oct 2014 at 3:24

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
To temporarly fixed it on my build, i've commented out "str = str + 
Global.SystemInfo.DisplayName;" on SetWindowText() in MainForm.cs

Original comment by baptiste...@gmail.com on 16 Oct 2014 at 4:44

GoogleCodeExporter commented 9 years ago
fixed in r8036

Original comment by goyu...@gmail.com on 17 Oct 2014 at 12:29