Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Program not closing completely

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-26-2009, 06:11 AM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 918
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default Program not closing completely

Hi !
Can anyone tell me what may be the reason for a program to leave a process runing after closing ?

I see the attached list of processes, the small one of "Nivut" is a leftover from the program after running and closing, the larger is the program running (after re launching it).

I checked that no files opened are left un-closed. any other reason ?
(the total code is too large to attach)
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #2 (permalink)  
Old 07-26-2009, 06:33 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Maybe there is somewhere an endless loop (usually with DoEvents) ?
__________________
Basic4android documentation
Reply With Quote
  #3 (permalink)  
Old 07-26-2009, 01:28 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 918
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

I found the cause of the problem - but I can't understand the reason.
I have a NUMUPDOWN control to select a number from 0 to 12.

When I removed it and replaced it with combobox - the problem disappeared.

The code for the control (from the design part):

Code:
addnum(portpanel,Hourupdn,95,160,50,2,12,255,255,255,True,True)@
The problem exist even if I mark all the line codes refering to this control in the program.
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #4 (permalink)  
Old 07-26-2009, 02:54 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Can you reproduce it with a simple program?
__________________
Basic4android documentation
Reply With Quote
  #5 (permalink)  
Old 07-26-2009, 03:35 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 918
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Already tried it with no success...

Can it be related to the size of the program ? or number of controls ? this was probably the last control I added.
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #6 (permalink)  
Old 07-26-2009, 06:49 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Quote:
Originally Posted by derez View Post
Already tried it with no success...

Can it be related to the size of the program ? or number of controls ? this was probably the last control I added.
The number of controls is only limited by the available memory. Are you running low on memory?
This case is pretty strange. The OS should not allow more than one instance of the same application running.
Can you somehow add some logging to your application (like writing some events to a file, or showing a message box)?
__________________
Basic4android documentation
Reply With Quote
  #7 (permalink)  
Old 07-27-2009, 06:47 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 918
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

The program size (exe file) is 1.2 MB, when running it uses 1.4 MB of memory while no map is loaded. There is still a lot of free memory .

The problem happens even if I just launch the application and immediately turn it off (so it hasn't loaded any map except for the opening screen).

I can add a sub to record anything within the cycle which is about 1-2 seconds, or during the app_start execution.

Tell me what you want to catch, I have no idea.
__________________
David Erez
Ramat Hasharon, Israel

Last edited by derez : 07-27-2009 at 06:49 PM.
Reply With Quote
  #8 (permalink)  
Old 07-28-2009, 10:05 AM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 918
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

I reduced the program to the minimum - it has just one form, one control and two code lines:
Code:
#Region Initialization
Sub app_start
Sip(False)
form2.Show 
End Sub
#End Region
If I remove the SIP or the control - it does not have the problem.
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #9 (permalink)  
Old 07-28-2009, 10:52 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

I AutoScaled Optimised compiled the application and tried it on my Axim X30 (WM2003SE), my iPAQ 214 (WM6.0) and my HTC Diamond (WM6.1). On none of them did I see this behaviour. Is there anything you need to do to provoke it?
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #10 (permalink)  
Old 07-28-2009, 11:29 AM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 918
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Mine is Mio 350 with WM5 , and it has Hebrew installed. The Hebrew has an effect on the IDE - I cannot edit the forms, just the code.

To see the problem I just have to run the program, close the form and then look at the task manager to see if there is a process running.

I tried it on WM6 emulator - it doesn't happen there.
__________________
David Erez
Ramat Hasharon, Israel

Last edited by derez : 07-28-2009 at 11:45 AM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems opening closing forms admben25 Questions (Windows Mobile) 3 11-03-2008 05:08 AM
Program not run under CF3.5 ? Paulsche Questions (Windows Mobile) 7 10-15-2008 04:23 PM


All times are GMT. The time now is 04:19 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0