<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="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>
</body>
</html>