Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Basic4ppc Wishlist > Bug Reports
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Bug Reports Post about errors or bugs encountered.

Version 6 Compile issue - fonts

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-30-2007, 02:58 AM
Newbie
 
Join Date: Sep 2007
Posts: 8
Default Version 6 Compile issue - fonts

I just downloaded version 6 am using optimized compiling on my personal contact manager. I get the following error (Device or Windows):
------
Error compiling program.
Error message: error C51502: The best overloaded method match for 'system.Drawing.Font.Font(string, float, System.Drawing.FontStyle)' has some invalid arguments.
------
I am using the FormLib.dll (dated 31 Oct 07) but I am not changing any fonts. I use it for:
ChangeParent
MinimizeBox
AddContextMenu

Any suggestions?
Reply With Quote
  #2 (permalink)  
Old 12-30-2007, 08:41 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,701
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Does it give any line number?
Can you post your code?
Reply With Quote
  #3 (permalink)  
Old 12-30-2007, 11:52 PM
Newbie
 
Join Date: Sep 2007
Posts: 8
Default

Erel,
It does not give any line number. It comes up right after the first 'DOS' window pops up during compiling.

I eliminated all references to FormLib.dll and removed the component - still get the error.

I would rather not post the code as it is 3300 lines and contains some private data.

Can you recomend a logical way to determine what to check or remove from my code to track this down?

Thanks
David
Reply With Quote
  #4 (permalink)  
Old 12-31-2007, 07:12 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,701
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Please send me your code if possible and I will check it.
erel@basic4ppc.com
Reply With Quote
  #5 (permalink)  
Old 12-31-2007, 09:33 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

Quote:
Originally Posted by emaster View Post
Can you recomend a logical way to determine what to check or remove from my code to track this down?
As it's a compilation error you don't need the code to run. So take a COPY of your code and remove the contents of each Sub, one by one, leaving the Sub Name - End Sub lines so you don't get missing references when you compile. Once you have isolated the Sub then take lines out of that Sub. Once you have isolated it it you can probably make a short bit of code that produces the error and send it to Erel if the problem is not now obvious.
Reply With Quote
  #6 (permalink)  
Old 12-31-2007, 01:36 PM
Newbie
 
Join Date: Sep 2007
Posts: 8
Default

agraham,

Thanks for the recomendation! I will work on that today.

Thanks
Reply With Quote
  #7 (permalink)  
Old 01-01-2008, 02:31 AM
Newbie
 
Join Date: Sep 2007
Posts: 8
Default

Ok here is what I have found:
1. Remarked out each Sub contents one at a time and tried to compile. Even with all remarked out still receive an error.
2. Removed all components and objects. Still receive an error.
3. Deleted all code except for Golbals and App_Start Sub and End Sub (no code). Still receive an error.
4. Started a new program and started to add in the components and objects I use (no code).
5. When I added DesktopOnly.dll to only the Desktop and compiled for the device I received an External compiler error C50246: "The type or namespace name 'DesktopOnly' could not be found (are you missing a using directive or an assembly reference?)"
6. When I added DesktopOnly.dll to the Device and compiled I received no error.
7. Added the following Components without an error (other than step 5 above):
- FormLib.dll
- Hardware.dll
- SQLDevice.dll
- SQLDesktop.dll
- DesktopOnly.dll
- ControlEvents1.dll
- HardwareDesktop.dll
8. I have started to add in code but this is going to take quite a while.

Any Ideas would be appreciated.
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
Checking available fonts? MitchDabo Questions (Windows Mobile) 5 02-10-2008 10:43 PM
Version 6.01 Compile Issue epninety Bug Reports 1 01-13-2008 11:34 AM
Mixing fonts and font styles? Mistrel Questions (Windows Mobile) 1 10-17-2007 04:23 AM
Reload system fonts on run Mistrel Basic4ppc Wishlist 2 10-16-2007 08:54 PM
Loading fonts outside of the font directory Mistrel Questions (Windows Mobile) 1 10-16-2007 07:28 AM


All times are GMT. The time now is 03:06 PM.


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