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.

out-of-memory-error based on timer after switching to V6

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-17-2008, 10:13 AM
Junior Member
 
Join Date: Sep 2007
Posts: 22
Default out-of-memory-error based on timer after switching to V6

Hi,
I have a (quite complex) GPS program that needs a timer and reads out GPS-data periodically. It is based on the GPS4PPC-demo.
However, after switching to Basic4PPC V6 (and introducing the new serial lib), I run out of memory on my device right away.
I am not sure if this is really due to the V6-switch or some other changes I introduced, but maybe the new and faster executable is a problem?

I'd be happy for any comments on this. Attached the the source code, but be warned: it is really quite big and needs better documentation.

BTW, I intend to publish this program as open source here as soon as it is running fine.

Thanks,
Frank
__________________
----------------------------
Frank
(with XDA Orbit)
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 10:25 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

There is an issue with HTC3300 and .Net CF 2.0 Serial class (which is the base of Serial2 library).
See this thread: http://www.basic4ppc.com/forum/showt...emoryexception
It includes a possible solution.
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 03:26 PM
Junior Member
 
Join Date: Sep 2007
Posts: 22
Default Serial.dll

Erel,
this seems to be the problem, as you say.
I've gone back to the old serial.dll, and all seems to be fine.
Maybe I stay there, although I cannot use "Optimized compilation" now...

The described solution doesn't work for me.



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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Proper use of the .New methods, out of memory error kolbe Questions (Windows Mobile) 5 09-05-2008 01:37 PM
Basic4PPC based on CE 4.1 ysut Questions (Windows Mobile) 3 08-08-2008 09:00 AM
cTicksPerDay: optimised compilation error with timer LineCutter Bug Reports 2 04-21-2008 06:15 PM
Out of Memory Exception Error on Load willisgt Questions (Windows Mobile) 9 03-01-2008 11:18 AM
Out of Memory error while loading bitmap HARRY Questions (Windows Mobile) 3 05-15-2007 12:12 PM


All times are GMT. The time now is 06:38 AM.


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