S
Stefano Marzani
Dear all,
this code gives me a lot of problems:
private void btnCheck_Click(object sender, System.EventArgs e)
{
SystemPowerStatus SPS = new SystemPowerStatus();
GetSystemPowerStatus(SPS);
MessageBox.Show(Convert.ToString(SPS.ACLineStatus));
}
If I execute it in the emulator no problems. If I execute it on a device
(h5450) with a breakpoint, no problems. If I execute freely on the device
the application completely exits without prompting errors or warnings.
Someone could help me? Thanks,
Stefano
this code gives me a lot of problems:
private void btnCheck_Click(object sender, System.EventArgs e)
{
SystemPowerStatus SPS = new SystemPowerStatus();
GetSystemPowerStatus(SPS);
MessageBox.Show(Convert.ToString(SPS.ACLineStatus));
}
If I execute it in the emulator no problems. If I execute it on a device
(h5450) with a breakpoint, no problems. If I execute freely on the device
the application completely exits without prompting errors or warnings.
Someone could help me? Thanks,
Stefano