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.

Optimized compilation

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-12-2008, 06:45 AM
Basic4ppc Expert
 
Join Date: May 2008
Posts: 550
Default Optimized compilation

I write a Windows app and compile with "Optimized compilation". But when I run, it's nothing happen. I compile again without "Optimized compilation" and it's ok.

What's wrong?
Reply With Quote
  #2 (permalink)  
Old 05-12-2008, 09:12 AM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Too litle info.....

What is it supposed to do?
Can you post your code?
Are you using any dll?

The amount of info provided is the only thing that helps us to help other...
Just saying "I have a problem" does not help us, help you....
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #3 (permalink)  
Old 05-13-2008, 01:31 AM
Basic4ppc Expert
 
Join Date: May 2008
Posts: 550
Default

Dear Cableguy,

I write a Windows app use some libraries. When I run (F5) to test, it's OK. I compile with "Optimized Compilation" it's creat a .exe file but when I run, there's nothing happen. I compile again without "Optimized Compilation" and run .exe file, it's OK. I don't know what going on. Can you explain? Thank you.

Ps: Sorry for my bad English.
Reply With Quote
  #4 (permalink)  
Old 05-13-2008, 06:23 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Can you upload your source code?
Reply With Quote
  #5 (permalink)  
Old 01-04-2009, 12:18 AM
Tirs's Avatar
Junior Member
 
Join Date: May 2007
Location: Canyelles (Garraf), Catalonia, Spain
Posts: 12
Default Optimized compilation - device EXEs just do nothing

Hello. Sorry for recovering an old thread, but it describes exactly my problem and I found it "cut in the middle"; let's see if we can give it a happy end

Basically the problem is: if I compile a device EXE without the "Optimize" option, the program works fine; if I compile the same with "Optimize", then the executable ignores the stylo tapping and does not run at all. No reaction, no error message, nothing. This happens with all the programs I tried: my own programs, a sample grabbed from the website ("GPSExample.zip") and even a test program I just prepared.

The thread ended with Erel asking Susu to upload the source code. Well, I prepared a very simple bare-bones program: it displays Form1 with a text and a button; when the user clicks the button, the program ends. I'm also sending both device EXEs, optimized and non-optimized. The second behaves as expected, but the first doesn't even start, as I'm explaining.

I'm using B4PPC version 6.50, and my device (Acer n35) runs Windows Mobile version 4.20.0; the processor is a Samsung S3C2410 (which means, StrongArm type).

Hope someone can me!
__________________
_____
|!rs
Reply With Quote
  #6 (permalink)  
Old 01-04-2009, 01:31 AM
Basic4ppc Veteran
 
Join Date: Jan 2008
Posts: 215
Default

Quote:
Originally Posted by Tirs View Post
Hello. Sorry for recovering an old thread, but it describes exactly my problem and I found it "cut in the middle"; let's see if we can give it a happy end

Basically the problem is: if I compile a device EXE without the "Optimize" option, the program works fine; if I compile the same with "Optimize", then the executable ignores the stylo tapping and does not run at all. No reaction, no error message, nothing. This happens with all the programs I tried: my own programs, a sample grabbed from the website ("GPSExample.zip") and even a test program I just prepared.

The thread ended with Erel asking Susu to upload the source code. Well, I prepared a very simple bare-bones program: it displays Form1 with a text and a button; when the user clicks the button, the program ends. I'm also sending both device EXEs, optimized and non-optimized. The second behaves as expected, but the first doesn't even start, as I'm explaining.

I'm using B4PPC version 6.50, and my device (Acer n35) runs Windows Mobile version 4.20.0; the processor is a Samsung S3C2410 (which means, StrongArm type).

Hope someone can me!
Hi. Does the Samsung S3C2410 have Compact Framework 2.0?
Reply With Quote
  #7 (permalink)  
Old 01-06-2009, 12:05 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Quote:
Originally Posted by digitaldon37 View Post
Hi. Does the Samsung S3C2410 have Compact Framework 2.0?
The Compact Framework is NOT cpu related, but WinMobile version related....
SO, did you mean to ask if the Acer n35 has CF2.0?
Being this a WM5 device, if it does not have already in ROM, it can be installed as a seperate pakage...
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #8 (permalink)  
Old 01-06-2009, 02:25 PM
Basic4ppc Veteran
 
Join Date: Jan 2008
Posts: 215
Default

Quote:
Originally Posted by Cableguy View Post
The Compact Framework is NOT cpu related, but WinMobile version related....
SO, did you mean to ask if the Acer n35 has CF2.0?
Being this a WM5 device, if it does not have already in ROM, it can be installed as a seperate pakage...
I was not asking about the CPU, I was asking about the version of Win Mobile that was on his device. I did not see where it was mentioned that it was a WM5 device.

Quote:
I'm using B4PPC version 6.50, and my device (Acer n35) runs Windows Mobile version 4.20.0; the processor is a Samsung S3C2410 (which means, StrongArm type).
I had not heard of Win Mobile 4.20.0 and I was curious if CF2.0 was installed.
Reply With Quote
  #9 (permalink)  
Old 01-15-2009, 07:49 PM
Tirs's Avatar
Junior Member
 
Join Date: May 2007
Location: Canyelles (Garraf), Catalonia, Spain
Posts: 12
Default Is there a Compact Framework 2.0 for Windows Mobile 4.2?

Sorry for the days off... my PPC died misteriously and I had to take it for repairs, so I didn't do anything related to it (even connecting here --sorry).

Well, it turns out that CF 2.0 was not installed in my PPC. If I recall correctly, it was installed before, but a few months ago it went through a cold reset, so it might happen that I didn't reinstall everything. But I went to the Microsoft web site, and it looks like CF 2.0 requires Windows Mobile 5 or newer (it refuses to install complaining about OS version). Can it be that my memory is playing tricks on me?

Anyway, it looks like my problem is that I don't have Compact Framework 2.0, but I cannot find a package for Windows Mobile 4.20. Anyone can confirm me if it exists, and where to find it if it does?

Alternatively, is there any way to use the GPS/Serial features of Basic4PPC without optimised compilation?

Thanks in advance!
__________________
_____
|!rs
Reply With Quote
  #10 (permalink)  
Old 01-15-2009, 07:56 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Windows CE 4.20 doesn't support .Net CF 2.0.
You can replace Serial2 with SerialDevice and SerialDesktop. These libraries don't require .Net CF 2.0.
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
Error with Optimized Compilation and SQLite berndgoedecke Questions (Windows Mobile) 1 09-07-2008 06:20 PM
optimized compilation manu Questions (Windows Mobile) 4 08-06-2008 06:17 PM
Optimized Compilation problem on the device bob Questions (Windows Mobile) 4 03-12-2008 01:05 PM
6.01 Optimized compilation error dpriem Bug Reports 2 01-06-2008 03:42 PM
FMOD and Optimized Compilation @Work Bug Reports 8 12-28-2007 07:51 PM


All times are GMT. The time now is 09:26 AM.


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