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.

Compiled EXE is not working on HP iPAQ214

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-06-2008, 05:22 AM
Senior Member
 
Join Date: Mar 2008
Location: Dhaka, Bangladesh
Posts: 159
Default Compiled EXE is not working on HP iPAQ214

Hi,

The compiled EXE file on the above PDA is not working and showing message:

"Error loading Program
outofMemoryException"


iPAQ214 having 128MB RAM, 256MB ROM

And EXE size is 1.51MB

what is the probable cause ?

regards,
Reply With Quote
  #2 (permalink)  
Old 10-06-2008, 05:59 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Does it work on other devices?
Can you post your program?
Reply With Quote
  #3 (permalink)  
Old 10-06-2008, 06:59 AM
Senior Member
 
Join Date: Mar 2008
Location: Dhaka, Bangladesh
Posts: 159
Default

Hi Erel,

We didn't try, cause it has been designed fro a large screen of iPAQ214.
I attached the code for you having 44 Forms and off course controls.


regards,
Reply With Quote
  #4 (permalink)  
Old 10-06-2008, 07:43 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,313
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Does the project files work on the device ide?
Are you sure you are using the correct device dll's? just before compilation, try to remove the desktop version of the dlls, just to be safe....
Are ALL those global var really needed or need to be globals?
My device specs are almost the same as the IPaq, so if you provide the missing images, I can have a run at it, and feedback to you...
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France-Saumur
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
B4PPC DLL Version Listing - B4Android DLL Version Listing

Last edited by Cableguy : 10-06-2008 at 07:47 PM.
Reply With Quote
  #5 (permalink)  
Old 10-06-2008, 08:30 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

For each form Basic4ppc creates a bitmap in the same size of the form.
This bitmap is used for all the custom drawings (graphics are double buffered).
Your application includes many large forms and this is most probably the problem.

As far as I see you are not using any graphics feature in your application.

Please download the attached file, unzip it and copy CEnhancedForm.cs to C:\Program Files\Anywhere Software\Basic4ppc Desktop\Tzor
First rename the existing CEnhancedForm.cs file to a different file as a backup.

Now when you'll compile your application (optimized compiler only) those bitmaps will not be created and the memory footprint will be much smaller.
Attached Files
File Type: zip CEnhancedForm.zip (3.4 KB, 15 views)
Reply With Quote
  #6 (permalink)  
Old 10-07-2008, 04:29 AM
Senior Member
 
Join Date: Mar 2008
Location: Dhaka, Bangladesh
Posts: 159
Default

Hi Cableguy and Erel,

It didn't run on the device IDE, same message was shown. I downloaded the CEnhancedForm.cs and did as per the suggestion, it works now. The resolution on the desktop was in compliance with the HPiPAQ214 but on the device the screens appear with distorted form. What could be the probable problem ?


regards,
Reply With Quote
  #7 (permalink)  
Old 10-07-2008, 05:54 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Can you attach a screenshot?
Reply With Quote
  #8 (permalink)  
Old 10-07-2008, 06:26 AM
Senior Member
 
Join Date: Mar 2008
Location: Dhaka, Bangladesh
Posts: 159
Default

Hi Erel,

I attached a screenshot of the desktop, do you need the same from device ? I'm not sure how to get the same from the device.

regards,
Attached Images
File Type: jpg Screenshot.JPG (66.2 KB, 34 views)
Reply With Quote
  #9 (permalink)  
Old 10-07-2008, 06:42 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

What do you mean with:
Quote:
but on the device the screens appear with distorted form
Reply With Quote
  #10 (permalink)  
Old 10-07-2008, 07:04 AM
Senior Member
 
Join Date: Mar 2008
Location: Dhaka, Bangladesh
Posts: 159
Default

On the device all controls are squeezed and shown in small size at the left upper corner of the device screen. what we noticed, when we change the screen size in design mode to 640 X 480 the relation between control size and font size is lost ! for example : on the desktop the word "kamlapur" shown in a label with fontsize=15 and width=95, but on the device we need width=260 to show the same word in fontsize=15.

One other observation, changing fontsize only changes the text of the radiobutton, not the circle itself and endup with larger radiobutton than desired.

Another observation, the application on the device IDE runs OK with controls having proper size and appearance the problem is with the compiled EXE. I attached the calendar snapshot from the device EXE.

regards,

Last edited by mozaharul : 10-07-2008 at 11:03 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
Compiled Properties Zenerdiode Basic4ppc Wishlist 2 03-06-2009 08:08 PM
Speed of the compiled application? JamesC Questions (Windows Mobile) 5 03-13-2008 12:59 AM
Compiled program won't run djmrozinski Questions (Windows Mobile) 12 02-27-2008 01:00 PM
Compiled version 6.05 and SQL BjornF Questions (Windows Mobile) 2 02-13-2008 03:30 PM
Compiled 1/2 size bdiscount Questions (Windows Mobile) 1 01-09-2008 04:05 PM


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


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