Power off

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi to all,
i've an application that is the only one the user can uses. The problem is
that when the devices power off, when the user brings it to power on
sometimes i get this error:
"An unecepted error has occured in Censimento.exe
Select Quit and then restart this program, or select Details for more
information"
The details section is:
Censimento.exe
SQLCeException
Application::Run+0xf
frmMain::Main+0xa

in normal mode (without a power off and then power on) i never get this
error. Any suggestions??? Have i to make some operation when power on?????

PS: the operation user make, after power on, is to display a new form from
main form.

Thanks.
 
Hi, st

As Alex said, it's possible because of the SQLCE db was kept in storage
card,
so after pda was powered on, application try to read data from db,
but power is not ready for storage card...

Firstly, you have to tell us if it's really kept in storage card...
Then you can try to put the db back to memory, and see if this
solve your problem.

HTH...
--

Best Regards,

Jan Yeh
MVP - Windows CE.NET, MCSD.NET, .NETcf consultant
http://blog.mvpcn.net/janyeh
 
Yes the db is in storage card... i use from this location beacause is a large
db... anu suggestion how to prevent this behavior...

thanks
 
Hi..

If you really have to put it in the storage card,
you can use try..catch in the SqlConnection.Open() region.
When it failed, you can wait for a short time, and then try to connect
again.
And you better show some message to tell user that PDA is connecting to db,
or user will start to click other buttons... ;-)

If anyone has better solutions, don't hesitate to share with us...
^_^

--

Best Regards,

Jan Yeh
MVP - Windows CE.NET, MCSD.NET, .NETcf consultant
http://blog.mvpcn.net/janyeh
 
Back
Top