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.

GPS - outofmemoryexception since WM6

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-11-2007, 04:14 PM
Junior Member
 
Join Date: May 2007
Posts: 35
Default GPS - outofmemoryexception since WM6

Hello guys,

I have a problem that I can`t solve since I updated my PPC to WM6.
If I use a GPS-program then I get the error: "outofmemoryexception" in codeline :
If serial.InBufferCount>0 Then
GPS.GPSStream(Serial.InputString)

I`m already using the serial2.dll (didn`t work at all with the other one).
Same error occurs when I use the gps-example from erel.
And I didn`t have this error on WM5.

Does anyone have an idea what is going on there?

Cheers

(I hope this hasn`t been answered somewhere here, if so then sorry, I didn`t find it.)
Reply With Quote
  #2 (permalink)  
Old 10-11-2007, 04:27 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,734
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Does it happen immediately?
Do other GPS applications work properly with your device?
Please try to install GPS4PPC and see if it works: http://www.basic4ppc.com/files/GPS4PPC.zip
Reply With Quote
  #3 (permalink)  
Old 10-11-2007, 06:21 PM
Junior Member
 
Join Date: May 2007
Posts: 35
Default

Hi Erel,
no this does not happen immediatly. It can take 5 to 50 seconds after starting the GPS-receiver.
And this also happens with your "GPS4ppc".
But first it disconnected the GPS again after 4 seconds. Reconnecting gave me the same error at line 363.

What can this be?
Reply With Quote
  #4 (permalink)  
Old 10-11-2007, 06:39 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,734
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Did you try to make a soft reset?
Other GPS applications work properly (not Basic4ppc apps) on your device?
Reply With Quote
  #5 (permalink)  
Old 10-11-2007, 06:52 PM
Junior Member
 
Join Date: May 2007
Posts: 35
Default

Yes, I made a softreset and tried TomTom Navigator that works fine. But the B4ppc-programs still make the error.
Reply With Quote
  #6 (permalink)  
Old 10-11-2007, 07:15 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,734
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Maybe updating the .Net CF will fix it.
There were some issues with the serial ports with .Net CF 2.0 / .Net CF 2.0 SP1.
Please make sure your device is installed with .Net CF 2.0 SP2.
You can create a new application, add the Hardware library and check Hardware.NetVersion value.
.Net CF SP2 value is: 2.0.7045
It can be downloaded here: http://www.microsoft.com/downloads/d...displaylang=en
Reply With Quote
  #7 (permalink)  
Old 10-11-2007, 07:59 PM
Junior Member
 
Join Date: May 2007
Posts: 35
Default

If I try to install this update then my device tells me that it already has it in the ROM.
The strange thing: I send my programm to a friend who owns a Asus P535 with WM6. He does not have this problem, but he doesn`t get a satfix (right after a satfix with another prog).

I have two HTC P3300 (artemis) and both show the outofmemory-error. I installed another Rom with a lot of free memory to one of my devices, but its the same problem.

Can someone else who has a device with WM6 try out Erels GPSApp, please. And tell me if it works.
Reply With Quote
  #8 (permalink)  
Old 10-14-2007, 07:33 PM
Junior Member
 
Join Date: May 2007
Posts: 35
Default

I`m still searching for an answer to this problem, so I found out that in the prog GPS4PPC follwing codelines seem to make trouble (however).

Sub Timer1_Tick
If serial.InBufferCount>0 Then
timeout = 0
GPS.GPSStream(serial.InputString) 'Takes the data received from the GPS to GPSStream.
Else
timeout = timeout + 1
If timeout = 5 Then mnuDisconnect_click
End If
End Sub

In my case the prog always disconnects the GPS after that 5 seconds and sometimes the errormessage from above occurs before.
So I think that the data doesn`t arrive.
Reply With Quote
  #9 (permalink)  
Old 10-15-2007, 09:29 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

At least one other person has a similar problem - see the second entry

http://nativemobile.blogspot.com/200...htc-p3300.html

"I also have problems with the GPS for this device. .... I'm using C# and the System.IO.Ports.SerialPort and got GPS working fine for other devices (WM5, PPC2003)."

No resolution posted though!
Reply With Quote
  #10 (permalink)  
Old 10-15-2007, 10:12 AM
Junior Member
 
Join Date: May 2007
Posts: 35
Default

Thanks for that hint, agraham.

But in my case I could use the gps of my device under WM5 without any problems with Basic4ppc-progs. And every other gps-prog I found worked so far. Now, since I changed to WM6, I encounter this poroblem. Maybe it has to do with the new serial2.dll.
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


All times are GMT. The time now is 11:24 AM.


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