Cant "re-open" my application

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

Guest

I have a PPC data collection application that upon opening, entering data and closing will occasionally lock me out of re-opening the application and I have to soft reset to get back into the applicaiton. In other words when I try to tap the program icon nothing happens. A couple other clues..

1.) I tried to reinstall the application once when this happened and it said the program was in use
2.) When I go to System|Memory|Running Programs nothing from my application is shown.
3) If I continuously tap the program icon after a while I get a "A critical component is either missing or cannot start because program memory is not avaiable

It's almost as if my application isnt completely exiting? Anybody have any idea what may be going on

Thank

Mik
 
It definitely sounds like it's not fully closing. A worker thread is the
usual culprit. Do you spawn any threads that you don't explicitly tell to
end before exiting?

--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
---
Principal Partner
OpenNETCF Consulting
www.OpenNETCF.com



Mike said:
I have a PPC data collection application that upon opening, entering data
and closing will occasionally lock me out of re-opening the application and
I have to soft reset to get back into the applicaiton. In other words when
I try to tap the program icon nothing happens. A couple other clues...
1.) I tried to reinstall the application once when this happened and it said the program was in use.
2.) When I go to System|Memory|Running Programs nothing from my application is shown.
3) If I continuously tap the program icon after a while I get a "A
critical component is either missing or cannot start because program memory
is not avaiable"
 
Hi,
It's almost as if my application isnt completely exiting? Anybody have any
idea what may be going on?>>

Yes, that almost certainly is what is going on. Are you doing any
multithreading? Threads must be exited in code, they do not terminate when
the application exits. So, if you are using free threads, then you have to
provide a signaling mechanism that allow the thread(s) to exit gracefully
when the app exits. There may be some similar thing elsewhere, so a careful
study of your program logic is in order.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
 
Back
Top