Dale

Dale

  • NA
  • 15
  • 0

Debug hang when hovering over textbox.Text

Aug 2 2006 1:53 PM
Quick quiz.  why is it i can cleanly step through a section of code.  But as soon as i hover over ".Text" the program hangs and then throws and exception? Also it should print "Form1.cs> (FloatConversion) : " plus the exception message and it doesnt
 for instance:

try

{

FloatConversion(txtNomThick.Text).CopyTo(blUpdatedArray,22);

}

catch(Exception ex)

{

cls_pv_ErrorJournal.RecordError("[v_p_Sender] : " + ex.Message, true);

}


.
.
.

private byte[] FloatConversion(String spTextBox)

{

byte[] blTempArray = new byte[4];

try

{

Single slTextBox = Convert.ToSingle(spTextBox);

Int32 ilTextBox = (Int32) slTextBox;

ilTextBox = System.Net.IPAddress.HostToNetworkOrder(ilTextBox);

blTempArray = BitConverter.GetBytes(ilTextBox);

}

catch(Exception ex)

{

cls_pv_ErrorJournal.RecordError("Form1.cs> (FloatConversion) : " + ex.Message, true);

}

return blTempArray;

}