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
  #31 (permalink)  
Old 10-23-2007, 01:20 PM
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

You may know about it but I just found this - it explains about the WM5 GPS splitter that I mentioned in reply #25 in this thread.

http://blogs.msdn.com/windowsmobile/...07/620387.aspx

Assuming that it exists in WM6 you could invoke this in built-in splitter to pass the GPS (COM4 I believe) to an unused COM, say COM6 and try with the serial2 libary. If this doesn't work then try adding the JAL Post Splitter inputting from COM6 and outputting to COM7. Clutching at at straws I know but maybe worth a try.
Reply With Quote
  #32 (permalink)  
Old 10-24-2007, 06:49 AM
Junior Member
 
Join Date: May 2007
Posts: 35
Default

Now, I have tried every possible combination I could imagine of portsettings in WM6 with and without the portsplitter.
If I do it correct with the portsplitter then the "outofmemoryexception" does not appear, but I do not get any gps-data(serial.inbuffercount). Other progs that use .Net 2.0 work. So I think there is something going wrong in Basic4ppc and its libaries.
I will test on other devices as soon as I can (maybe it is only on devices with buildIn gps). But now I have to stop programming. This took me too many hours and I have do a job for money as well. Hopefully there will be an answer for this in near future.
Thanks a lot for your help.
Reply With Quote
  #33 (permalink)  
Old 10-24-2007, 12:40 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,734
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

I've attached a small application to test the SerialPort class.
It was written with Visual Studio 2005.
Inside the zip file you will find a single executable file. Copy it to your device and run it.
Choose the right port and press connect.
The TextBox should get filled with data from the gps.
Attached Files
File Type: zip GPS.zip (3.2 KB, 71 views)
Reply With Quote
  #34 (permalink)  
Old 10-25-2007, 07:13 PM
Junior Member
 
Join Date: May 2007
Posts: 35
Default

Hi Erel,
the prog you wrote with Visual Studio 2005 did not show any data in the textbox, but it seems to connect to the Serial.
And I tested a little bit on a friends device with WM6 and buildIn-GPS, but there were no problems at all.
So, I`m sorry that I suggested an error in B4ppc-libaries. It really seems like a bigger problem with my device. I think the manufacturer won`t be intrested in my problem, even if every HTC P3300 has it.
I don`t know enough about the deeper backgroud how this "serial/gps and program talking to each other" works. Now I`m a bit disappointed that I can`t find a solution.
Reply With Quote
  #35 (permalink)  
Old 10-29-2007, 07:58 AM
Junior Member
 
Join Date: May 2007
Posts: 35
Default

I got it running!

I read something about GpsGate and just thought its worth a try. Somehow this program can pass the gps-data to b4ppc-apps. I still haven`t got an idea why this is so strange, but I can go on with my work, even if it costs 25 Euro now.

Thanks a lot for your help Erel and Agraham. Maybe some day we will find the failure. (Or not)
Reply With Quote
  #36 (permalink)  
Old 10-29-2007, 08:08 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,734
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default


What is GPSGate?
Reply With Quote
  #37 (permalink)  
Old 10-29-2007, 04:08 PM
Junior Member
 
Join Date: May 2007
Posts: 35
Default

GpsGate

is an app that is very similar to portsplitter, but it seems to have more oppertunities . It catches the GPS-receiver and gives a virtual-com-port or another format which you desire. I didn`t check out everything. It just works.
Reply With Quote
  #38 (permalink)  
Old 10-29-2007, 05:52 PM
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

What a relief! I am really pleased that you found a solution that works for you.

From all the Googling around I did it seems there is definitely a .NET 2.0 SerialPort class issue with the built-in GPS on the P3300 as other .NET based apps have the same problem. I found one person who had contacted HTC and was told that they would only provide support for TomTom so he was on his own with third-party GPS apps.
Reply With Quote
  #39 (permalink)  
Old 11-07-2007, 10:42 PM
bidibulle's Avatar
Junior Member
 
Join Date: Oct 2007
Location: France
Posts: 13
Awards Showcase
Beta Tester 
Total Awards: 1
Default

I had the same problem with my SPV M650 (HTC P3300 sold by Orange) under WM5. I fixed the problem by installing GPSGATE.
One thing to know: My SPV M650 was sold with a USIM (128Mo) and I add a SD card (1Go). You must install GPSGATE in the main memory or in the USIM. If you install GPSGATE in the SD card you will not be able to set the COM port.
I think that some other software have the same problem (VitesseLimite for example).
Reply With Quote
  #40 (permalink)  
Old 05-29-2008, 04:20 PM
Junior Member
 
Join Date: Sep 2007
Posts: 22
Default ComplexGPS example sometimes working, sometimes doesn't

Hi,
I have the same problem on an O2 XDA Orbit (HTC Artemis).
I installed GPSGate and can run Erel's VisualStudio-sample program ("DeviceApplication3.exe") with no problems (on a virtual COM-port that I defined with GPSGate).

I installed Erel's complexGPS-sample from a setup file I found somewhere here on the forum and it also runs fine.
Now here is the problem: I got the sources of the complexGPS-sample, compiled it myself with B4PPC V6.30 (not optimized; optimized compile doesn't work due to a "Registry Desktop" error) and it shows the same error as before: out-of-memory-exception!

Now that is strange. I have attached the zip-file with the sample which doesn't work. Any idea anyone?

Thanks,
Frank
__________________
----------------------------
Frank
(with XDA Orbit)
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:23 AM.


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