PC Review


Reply
Thread Tools Rate Thread

Application xxx has encountered a serious error and must shut down

 
 
GrahamS
Guest
Posts: n/a
 
      11th May 2009

GrahamS 5/11/2009 12:42 AM PST
Question
Hi,

NB Also posted to Application Development
--------------------------------------------

I have a CE application which runs pretty well on a number of embedded PC's
(eBox 2300sx).

I am experiencing seemingly random failures however - some appearing days
after the application is started. These put up a dialog with the above
message (xxx is my app name).

Similar messages have also reported this as being in 'udevice.exe'.

My app is a Managed C# CF3.5 app and makes extensive use of a TCP Socket and
a serial port (Com2).

My app has a full set of exception handlers - with some wrapping threads,
and one wrapping the whole app - but none of these are triggered when this
dialog pops up.

1. How do I identify what is causing this dialog ??.

2. How do I prevent it from occurring. There is no user - its a remotely
located device with no screen, keyboard or mouse and MUST run 24x7 completely
unattended. There is a UI but for 'diagnostic' purposes only - plug in a
screen and see what the device is doing.

I would make it a full 'windows service' if this were a PC - but its CE :-O.

My app is run from within a command file so that IF it were to crash out -
it just gets restarted - this all works until the OS puts up this dialog box
:-O - then one of my threads stops (serial port) until the OK button is
pressed.

This is making me wonder if I really should be using CE for this project at
all :-((.

I cannot really 'instrument' this any further as adding KITL prevents me
from using the serial and ethernet ports - on which my app is based. It also
completely changes the footprint of the device and thus may even mask the
issue anyway ??.

It 'looks' to me like an exception outside of my own code - maybe in the
'managed wrappers' ??.

This one has been driving me nuts for many weeks now as I cannot get to the
bottom of it - especially as the error message is SO unhelpful!.

NB I replaced the MS SerialPort with OpenNetCF Serial and this seems to have
made the occurrence rarer - I thought it had gone away - but yesterday it
came back again after running perfectly for a few days :-O.

Finally - it does not appear to happen on ALL boxes - although this may well
be a 'red herring' - ie there could be other code changes introduced whilst
trying to instrument the problem to locate it ;-O.

I am even now getting to the stage of questioning whether CE is the right
choice here - if it can put up a show-stopper like this. My eBox has 128M RAM
so maybe I should be thinking about Embedded XP or some other OS ?? - ie one
which has better support for 'services'.

Thanks hopefully.

Regards

Graham

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Application xxx has encountered a serious error and must shut down GrahamS Microsoft Dot NET Compact Framework 0 11th May 2009 10:02 AM
FrontPage 2003 encountered critical error and must shut down. =?Utf-8?B?Sm9lIEMu?= Microsoft Frontpage 5 11th May 2006 02:42 PM
Re: Application encountered error Jan Karel Pieterse Microsoft Excel Crashes 2 7th Apr 2006 09:03 AM
Application encountered error =?Utf-8?B?ZWNob2JvYg==?= Microsoft Access 1 4th Apr 2006 07:49 PM
MFC Application encountered a problem and will shut down khesse01 Windows XP General 2 2nd Oct 2003 05:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:16 PM.