Application Lock

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

Guest

Hi all,

I have a strange problem. My application which is developed on VB.NET is installed on Pocket PC and the sdf is placed on a storage card. The system is working perfectly fine as of now. But occasionally, it is getting locked up. In the sense, any number of clicks on the Icon doesn't start the application. I cannot uniinstall the application, it gives an error message that application is still running. I cannot re-install application. I can only restart application after a soft reset. I don't know if this is a problem with my application itself, if it not shutting down properly or something. Please help me....please

regards
 
I have a strange problem. My application which is developed on VB.NET is
installed on Pocket PC and the sdf is placed on a storage card. The system
is working perfectly fine as of now. But occasionally, it is getting locked
up. In the sense, any number of clicks on the Icon doesn't start the
application. I cannot uniinstall the application, it gives an error message
that application is still running. I cannot re-install application. I can
only restart application after a soft reset. I don't know if this is a
problem with my application itself, if it not shutting down properly or
something. Please help me....please

Are you doing anything with seperate threads?
Does the problem seem to arise when you power the device on and off? There
is an issue with storing the SDF file on memory cards whereby a power-off
can make things blow to bits.

Chris
--
****Please Reply To The Newsgroup So All Can Benefit From Discussion****
-------------------------------------------
Kognition Consulting Limited - Thought Meets Technology
Chris J.T. Auld - Managing Director
Microsoft MVP (Windows Mobile Devices)
Phone: +64 3 453 0064
Mobile: +64 21 500 239
 
Hi Chris

Thanks a lot for replying. Yes infact, I am storing the SDF file on the storage card and precisely the problem is occuring during power on/off. Chris, will you please help me with a solution. Please...chri

Thanks a lot in advanc

regard

----- Chris J.T. Auld [MVP] wrote: ----
I have a strange problem. My application which is developed on VB.NET i
installed on Pocket PC and the sdf is placed on a storage card. The syste
is working perfectly fine as of now. But occasionally, it is getting locke
up. In the sense, any number of clicks on the Icon doesn't start th
application. I cannot uniinstall the application, it gives an error messag
that application is still running. I cannot re-install application. I ca
only restart application after a soft reset. I don't know if this is
problem with my application itself, if it not shutting down properly o
something. Please help me....pleas

Are you doing anything with seperate threads
Does the problem seem to arise when you power the device on and off? Ther
is an issue with storing the SDF file on memory cards whereby a power-of
can make things blow to bits

Chri
--
****Please Reply To The Newsgroup So All Can Benefit From Discussion***
------------------------------------------
Kognition Consulting Limited - Thought Meets Technolog
Chris J.T. Auld - Managing Directo
Microsoft MVP (Windows Mobile Devices
Phone: +64 3 453 006
Mobile: +64 21 500 23
 
OK....
the simple way to fix it is to make sure that you close and re-open your
ADO.NET connection objects every time you use them.

This does have a performance penalty... so if you really ned to hold the
connection objects open then you will need to check if the device has been
powered off or not. I use a background thread that sets a global variable to
DateTime.Now and checks that the elapsed time each time around the thread
loop is within a certain range... if it is not, because the device has been
powered off, then I close and reopen the connection. If you take this
approach be careful with thread safety on your connection. I'm probably not
happy to share the source for my solution as it is VERY hackish.....
*blushes*... and I'm not sure that I would risk it with others.

Cheers
Chris

--
****Please Reply To The Newsgroup So All Can Benefit From Discussion****
-------------------------------------------
Kognition Consulting Limited - Thought Meets Technology
Chris J.T. Auld - Managing Director
Microsoft MVP (Windows Mobile Devices)
Phone: +64 3 453 0064
Mobile: +64 21 500 239
Email: (e-mail address removed)
Bhanu Prakash said:
Hi Chris,

Thanks a lot for replying. Yes infact, I am storing the SDF file on the
storage card and precisely the problem is occuring during power on/off.
Chris, will you please help me with a solution. Please...chris
 
Back
Top