E
Enrico Pavesi
A strange native exception appens sometimes when i call this function.
Is called in a try except block and it's the last call before the catch. The
event is a button click.
I see that all the visual interface is modified . The PVEN field is selected
and after a little moment a had a native exception.
May be the GC detsroy something? How can i understend what happens after the
end of the function?
Thanks
Function
{
XART.Text= GL.RilCorrente.Campi["XART"].ToString().Trim();
XRIL.Text= GL.RilCorrente.Campi["XRIL"].ToString().Trim();
CART.Text=GL.RilCorrente.Campi["CART"].ToString().Trim();
PVEN.Text=GL.RilCorrente.ToDouble("PVEN").ToString();
PERC.Text=GL.RilCorrente.ToDouble("PERC").ToString();
FL01VAF.Checked=false;
FL02VAF.Checked=false;
if (GL.RilCorrente.Campi["FL01VAF"].ToString() == "S")
FL01VAF.Checked=true;
if (GL.RilCorrente.Campi["FL02VAF"].ToString() == "S")
FL02VAF.Checked=true;
EAN.Text=GL.RilCorrente.Campi["CEAN"].ToString().Trim();
...........
pnlPVEN.Text=PVEN.Text;
pnlPERC.Text=PERC.Text;
PVEN.Focus();
PVEN.SelectAll();
}
Is called in a try except block and it's the last call before the catch. The
event is a button click.
I see that all the visual interface is modified . The PVEN field is selected
and after a little moment a had a native exception.
May be the GC detsroy something? How can i understend what happens after the
end of the function?
Thanks
Function
{
XART.Text= GL.RilCorrente.Campi["XART"].ToString().Trim();
XRIL.Text= GL.RilCorrente.Campi["XRIL"].ToString().Trim();
CART.Text=GL.RilCorrente.Campi["CART"].ToString().Trim();
PVEN.Text=GL.RilCorrente.ToDouble("PVEN").ToString();
PERC.Text=GL.RilCorrente.ToDouble("PERC").ToString();
FL01VAF.Checked=false;
FL02VAF.Checked=false;
if (GL.RilCorrente.Campi["FL01VAF"].ToString() == "S")
FL01VAF.Checked=true;
if (GL.RilCorrente.Campi["FL02VAF"].ToString() == "S")
FL02VAF.Checked=true;
EAN.Text=GL.RilCorrente.Campi["CEAN"].ToString().Trim();
...........
pnlPVEN.Text=PVEN.Text;
pnlPERC.Text=PERC.Text;
PVEN.Focus();
PVEN.SelectAll();
}