Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Bug Reports
Home Register FAQ Members List 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, 03: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, 09:41 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,143
Default

Does it give any line number?
Can you post your code?
Reply With Quote
  #3 (permalink)  
Old 12-31-2007, 12:52 AM
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, 08:12 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,143
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, 10:33 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,704
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
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, 02: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, 03: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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking available fonts? MitchDabo Questions & Help Needed 5 02-10-2008 11:43 PM
Version 6.01 Compile Issue epninety Bug Reports 1 01-13-2008 12:34 PM
Mixing fonts and font styles? Mistrel Questions & Help Needed 1 10-17-2007 05:23 AM
Reload system fonts on run Mistrel Basic4ppc Wishlist 2 10-16-2007 09:54 PM
Loading fonts outside of the font directory Mistrel Questions & Help Needed 1 10-16-2007 08:28 AM


All times are GMT. The time now is 10:40 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0