Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Application exits without cause


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-14-2008, 04:19 PM
Junior Member
 
Join Date: Nov 2007
Posts: 19
Default Application exits without cause

I've made a text editing based app that seems to have developed a habit of suddenly exiting when I switch back to it from another program. It doesn't happen every time, and sometimes seems to happens if the device (Axim x51v) has turned off, I've yet to spot the exact pattern.

It's obviously not closing properly because it reloads the autosave file from the previous run that it deletes on form close and properly it would prompt me to save. Another app I've made seems to work fine (Was open at the same time on some of the occasions)

Is there a way to find out what might be causing this/is it a problem anyone else has had?
Reply With Quote
  #2 (permalink)  
Old 03-14-2008, 05:38 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

Can you upload the code?
Reply With Quote
  #3 (permalink)  
Old 03-14-2008, 09:04 PM
Junior Member
 
Join Date: Nov 2007
Posts: 19
Default

The code is attached, I'm wondering if it might be the autosave timer system but I cant see anything obviously wrong...
Attached Files
File Type: zip NoteGuider.zip (16.6 KB, 6 views)
Reply With Quote
  #4 (permalink)  
Old 03-15-2008, 09:31 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

I didn't get this error while testing it.
This is not related to the exit problem, but the Bluetooth functions are only supported on devices with Microsoft Bluetooth stack. You should use an ErrorLabel that catches the error that will be raised on line 34:
Code:
If hardware.BluetoothMode = 0 Then mnuBlueOff.Checked = true Else mnuBlueOn.Checked = true
In order to find the problem I recommend you to temporary remove the GotFocus / LostFocus subs (maybe there is a recursive call in these methods) and disable the timer and see if it helps.

If your device is low on memory then opening other applications may also cause all kinds of problems to your application.
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
My first application Erel Tutorials 11 11-26-2008 05:49 PM
GPS application - Part I Erel Tutorials 4 02-13-2008 07:39 AM
Application Name kawawong Questions & Help Needed 1 02-12-2008 10:38 AM
Minimize Application akr Questions & Help Needed 4 10-18-2007 08:51 PM
DB Application scott93727 Share Your Creations 0 05-02-2007 06:24 AM


All times are GMT. The time now is 01:27 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0