<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle">P {
        MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
P {
        MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
</style>
</head>
<body fPStyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<p></p>
<div style="FONT-SIZE: 13px; FONT-FAMILY: Tahoma">
<p><font face="times new roman">This was because of the Display Font being at set at 125%.  I saw this, but didn't correlate that email to this problem.  Sorry for the spam.</font></p>
</div>
<p></p>
<p> </p>
<p></p>
<hr tabindex="-1">
<p></p>
<div style="FONT-SIZE: 16px; FONT-FAMILY: Times New Roman; COLOR: #000000">
<div id="divRpF405028" style="DIRECTION: ltr"><font color="#000000" size="2" face="Tahoma"><b>From:</b> chris@chrismitchellhome.net<br>
<b>Sent:</b> Wednesday, March 06, 2013 00:39<br>
<b>To:</b> warren@wpratt.com<br>
<b>Cc:</b> hpsdr@openhpsdr.org<br>
<b>Subject:</b> Crash in mx PowerSDR_mRX_v3.0.0.0<br>
</font><br>
</div>
<div></div>
<div>
<div style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma; COLOR: #000000; DIRECTION: ltr">
<div>
<p><font face="times new roman">Environment: Windows 8, 64-bit</font></p>
<p><font face="Times New Roman"></font> </p>
<p><font face="Times New Roman">I'm getting a NullReferenceException in PowerSDR.Display.Target.set() on line 419.</font></p>
<p><font face="Times New Roman">Quick inspection in the debugger suggests that console is null.  Dispay.console is set later in Console.Console(...) than where I've progressed. 
</font></p>
<p><font face="Times New Roman">Looks like the ResumeLayouts are causing resizes before we're ready and the resizes are calling into console/display before inited.</font></p>
<p><font face="Times New Roman"></font> </p>
<p><font face="Times New Roman">Placing a null check in Target.set() seemed to have fixed the crash, implying there were no other problems.</font></p>
<p><font face="Times New Roman">I have two machines: one does this and the other doesn't.  I haven't attempted to debug both yet, but wanted to pass it on nonetheless.</font></p>
<p><font face="Times New Roman"></font> </p>
<p><font face="Times New Roman"></font> </p>
<p>> PowerSDR.exe!PowerSDR.Display.Target.set(System.Windows.Forms.Control value) Line 419 + 0x18 bytes C#<br>
  PowerSDR.exe!PowerSDR.Console.picDisplay_Resize(object sender, System.EventArgs e) Line 39230 C#<br>
  System.Windows.Forms.dll!System.Windows.Forms.Control.OnResize(System.EventArgs e) + 0xc3 bytes <br>
  System.Windows.Forms.dll!System.Windows.Forms.PictureBox.OnResize(System.EventArgs e) + 0xd bytes <br>
  System.Windows.Forms.dll!System.Windows.Forms.Control.OnSizeChanged(System.EventArgs e) + 0x27 bytes <br>
  System.Windows.Forms.dll!System.Windows.Forms.Control.UpdateBounds(int x, int y, int width, int height, int clientWidth, int clientHeight) + 0xa3 bytes <br>
  System.Windows.Forms.dll!System.Windows.Forms.Control.UpdateBounds(int x, int y, int width, int height) + 0x7f bytes <br>
  System.Windows.Forms.dll!System.Windows.Forms.Control.SetBoundsCore(int x, int y, int width, int height, System.Windows.Forms.BoundsSpecified specified) + 0xd8 bytes <br>
  System.Windows.Forms.dll!System.Windows.Forms.Control.ScaleControl(System.Drawing.SizeF factor, System.Windows.Forms.BoundsSpecified specified) + 0x437 bytes <br>
  System.Windows.Forms.dll!System.Windows.Forms.Control.ScaleControl(System.Drawing.SizeF includedFactor, System.Drawing.SizeF excludedFactor, System.Windows.Forms.Control requestingControl) + 0x9c bytes <br>
  System.Windows.Forms.dll!System.Windows.Forms.Control.Scale(System.Drawing.SizeF includedFactor, System.Drawing.SizeF excludedFactor, System.Windows.Forms.Control requestingControl) + 0x8b bytes <br>
  System.Windows.Forms.dll!System.Windows.Forms.Control.ScaleChildControls(System.Drawing.SizeF includedFactor, System.Drawing.SizeF excludedFactor, System.Windows.Forms.Control requestingControl) + 0xad bytes <br>
  System.Windows.Forms.dll!System.Windows.Forms.Control.Scale(System.Drawing.SizeF includedFactor, System.Drawing.SizeF excludedFactor, System.Windows.Forms.Control requestingControl) + 0xa5 bytes <br>
  System.Windows.Forms.dll!System.Windows.Forms.ContainerControl.OnChildLayoutResuming(System.Windows.Forms.Control child, bool performLayout) + 0xea bytes <br>
  System.Windows.Forms.dll!System.Windows.Forms.Control.OnLayoutResuming(bool performLayout) + 0x34 bytes <br>
  System.Windows.Forms.dll!System.Windows.Forms.Control.ResumeLayout(bool performLayout) + 0x13c bytes <br>
  PowerSDR.exe!System.Windows.Forms.PanelTS.ResumeLayout(bool performLayout) Line 922 C#<br>
  PowerSDR.exe!PowerSDR.Console.InitializeComponent() Line 7143 C#<br>
  PowerSDR.exe!PowerSDR.Console.Console(string[] args) Line 1556 C#<br>
</p>
<p>73's</p>
<p>Chris</p>
<p>KE9M / LA8GTA</p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>