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.

Optimizing Compiler Error?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-19-2008, 08:16 PM
Senior Member
 
Join Date: May 2007
Posts: 125
Default Optimizing Compiler Error?

Hi. Without reverting to the nonoptimizing compiler, how can I use dlls that do not have .cs files within the libraries folder, and, that are in another location with my Source Code? Thanks.
Reply With Quote
  #2 (permalink)  
Old 09-19-2008, 08:26 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

Just add them as a component and they will be copied to your app directory then distribute them with your compiled exe. If they are not merged they will be loaded at runtime.
Reply With Quote
  #3 (permalink)  
Old 09-19-2008, 10:23 PM
Senior Member
 
Join Date: May 2007
Posts: 125
Default

Hi. When I do add a library as a component, or load a Basic4ppc Source file containing components, then compile, the external compiler complains that the file is a binary file and not a text file. No .exe is produced. Maybe the dll I am linking with is a common one like the HTTP.dll so it wants to import the c# source and it isn't available in the location I have my project and ,dlls?b
Reply With Quote
  #4 (permalink)  
Old 09-20-2008, 08:23 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

The presence or absence of the source is irrelevant when adding a component. Only the optimising compiler cares about whether source is available. It looks like the library you are trying to add might be a native dll, not a .NET assembly although the error I would expect is "The module was expected to contain an assembly manifest"

EDIT:- I've just reread your last post more carefully so ignore the above. Does the app run in the IDE with this library? It doesn't matter whether the dll is a "common" one or not. There is no list of libraries that must have the source available, if the source is there it is used, if not then the dll is needed at runtime. What is this library you are trying to use?

Last edited by agraham : 09-20-2008 at 08:27 AM.
Reply With Quote
  #5 (permalink)  
Old 09-20-2008, 02:29 PM
Senior Member
 
Join Date: May 2007
Posts: 125
Default

Hi Agraham, It is the HTTP.dll library for a game I wrote with an earlier version of Basic4ppc using my Pocket PC. When I try to compile this project with the opttimizing compiler, I get an error saying that http.dll is not a text file, but a binary file. No executable is created. The Source to the HTTP library is in my c:\program Files\Anywhere Software\Basic4ppc Desktop\Libraries folder, but is not present in my Basic4ppc project folder. However the nonoptimizing compiler works fine. Could it be that maybe the HTTP.dll component used by this game isBB old? HTH.
Reply With Quote
  #6 (permalink)  
Old 09-20-2008, 03:00 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 never need the source in your project folder. I assume you mean the HTTP.dll library that comes with B4ppc. Have you copied the latest version of HTTP.dll to your project folder. If you are trying to use an old version of the library that might be the problem.

Last edited by agraham : 09-20-2008 at 03:11 PM.
Reply With Quote
  #7 (permalink)  
Old 02-23-2009, 03:50 AM
Senior Member
 
Join Date: May 2007
Posts: 125
Default

Hi Erel or Agraham, I am still getting this error when using B4PPC'S HTTP.dll library with Basic4ppc version 6.5. How can I fix this without reverting to the nonoptimizing compiler? The HTTP.cs file is present in my c:\program files\anywhere software\basic4ppc desktop\libraries folder. Even when I move my modules and B4PPC source to the libraries folder I still get the error. HTH.
Reply With Quote
  #8 (permalink)  
Old 02-23-2009, 08: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

Can you post a zip of your project directory. And also the file 1.rsp copied immediately after a failed compile from
either

"C:\ProgramData\Anywhere Software\Basic4ppc\6.0.0.0\Tzor" - Vista

or

"C:\Documents and Settings\All Users\Application Data\Anywhere Software\Basic4ppc\6.0.0.0\Tzor" - XP
Reply With Quote
  #9 (permalink)  
Old 02-23-2009, 05:49 PM
Senior Member
 
Join Date: May 2007
Posts: 125
Default

Hi. It happens with any project that uses the HTTP library, and only this library. All I do is add the components to both the desktop and device and when I compile the csc compiler says that HTTP.dll is a binary file, not a text file. Are you sure a project directory will help, if it does it with all projects that include the HTTP library? If so, let me know and I'll post one. HTH.
Reply With Quote
  #10 (permalink)  
Old 02-23-2009, 07:09 PM
Senior Member
 
Join Date: May 2007
Posts: 125
Default

Hi! It is now working. It seems I forgot a desktop reference. LOL.
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
Compiler Directives Louis Basic4ppc Wishlist 4 09-28-2008 10:54 PM
Compiler error CS1519 Filippo German Forum 3 07-16-2008 08:06 PM
Compiler error CS1519 mamuen Questions (Windows Mobile) 9 07-14-2008 04:41 AM
External compiler error prinsen Questions (Windows Mobile) 3 03-19-2008 07:54 PM
Problem with Optimized Compiler mikemputer Questions (Windows Mobile) 3 01-26-2008 02:00 PM


All times are GMT. The time now is 07:44 AM.


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