Re: Application freezes CF 1.1 Win CE4.2 any ideas
- From: "<ctacke/>" <ctacke[@]opennetcf[dot]com>
- Date: Fri, 19 Jan 2007 11:27:57 -0500
1. There is no CF 1.0 - it's CF 1.0 or 2.0. I'll assume you're using 1.0
2. The most likely cause is you're affecting some UI element from a worker
thread. You must use Control.Invoke for this. To debug I'd run the app
against CF 2.0SP1 in compatibility mode. CF 2.0 throws lots more exceptions
than 1.0 did, so it's likely to tell you exactly where the error is.
--
Chris Tacke
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--
"Andrew Fell-Gordon" <NgAnswers@xxxxxxxxxxxxxxxxx> wrote in message
news:eoqpud$m0k$1$830fa7a5@xxxxxxxxxxxxxxxxxxx
I have developed a ticketing application running on Psion Teklogix
WorkaboutPro running under CE4.2.Net and written in
Vb.net under CF 1.1.
The application is generally working well but is subject to occasional
freezes. It stops responding to key presses or clicks on
the touch screen. These occur, from user descriptions, in situations which
are regularly used without problems. I have extensive
Try/catch error trapping in place and no errors are being caught.
One common factor from the user descriptions is that the freezes occur
when
I am hiding and showing panels to change the
interface. I know that the most likely cause of freezes is attempts to
update the interface from worker threads and I have been through
the code checking for these and making sure that Invoke was used if the
interface was updated. While I use separate threads
for individual background jobs I also have a number of timers running
though
none of these update the interface. I can't see where
these would affect the freeze, but I'm running out of ideas.
Apart from my VB code I have OpenNetCf' s serial library in use to write
to
a bluetooth printer, though freezes have not occurred
during printing and I only create a serial port file when I start
printing.
I also make use of nSoft's IPWorks FTP control. That is created
when the system is started but no FTP is going on when the freezes occur.
As the system has to be re-booted to clear the freeze I can't point to any
code involved. Is there any way that I can see where the program
is hanging when I get it back on an ActiveSync link?
Does anyone have any suggestions of things I should be checking or
possible
causes?
Any help would be much appreciated.
Best regards
Andrew
.
- Follow-Ups:
- References:
- Application freezes CF 1.1 Win CE4.2 any ideas
- From: Andrew Fell-Gordon
- Application freezes CF 1.1 Win CE4.2 any ideas
- Prev by Date: Re: power status for compact framework (CF) 2.0
- Next by Date: Re: Application freezes CF 1.1 Win CE4.2 any ideas
- Previous by thread: Application freezes CF 1.1 Win CE4.2 any ideas
- Next by thread: Re: Application freezes CF 1.1 Win CE4.2 any ideas
- Index(es):
Relevant Pages
|