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.

Inconsistant compiler result

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-04-2008, 12:01 PM
Knows the basics
 
Join Date: Oct 2007
Location: Berkshire, UK
Posts: 76
Awards Showcase
Beta Tester 
Total Awards: 1
Default Inconsistant compiler result

I am not sure if this is a bug or a problem with my set-up:-

Sometimes my program crashes on a "bitmap1.Dispose" command, but not every time. The error message is always the same - attached below.

This small section of code had been working fine for some time, but I assumed my program was faulty. However, I could not find the problem.

Then I discovered that the first compile after loading the IDE always produces an exe that works OK, but any re-compile after that, without re-starting the IDE, makes an exe that always has the error!

I'm using optimized compile, version 6.05, no recent changes to libraries and believe ImageLib and other libs are the correct files on desktop and device. The error only happens on the device - .Net 2, WM5 and emulator for WM6. Un-optimized exe's do not have the error.

Any ideas?

(By the way, despite this little problem I think the optimized compiler is fantastic.)

Geoff.
Reply With Quote
  #2 (permalink)  
Old 03-04-2008, 05:15 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Is it possible to upload the code?
The error message is related to closing an SQL connection.
Reply With Quote
  #3 (permalink)  
Old 03-04-2008, 06:18 PM
Knows the basics
 
Join Date: Oct 2007
Location: Berkshire, UK
Posts: 76
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Yes, but I isolated the failure point by inserting MsgBox's. All the SQL routines before and after this were checked by commenting out the problem section (which just loads a jpg into an Image control) and all work fine.

The offending code section is below. It wouldn't be practical to upload the whole project, but I will PM you.

Geoff.

AddObject("bitmap1","Bitmap")
bitmap1.New1(dlgOpen.File)
w = bitmap1.Width
h = bitmap1.Height
OP_Setupform
imgOP.Image = bitmap1.Value
imgOP.Image = imgOP.Image
bitmap1.Dispose * ERROR HERE *
imgOP.Width = imgOP.Height*(w/h)
lblOPname.Text=lblName.Text
frmPM.Show
Reply With Quote
  #4 (permalink)  
Old 03-04-2008, 06:44 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Please send me your project to: erel@basic4ppc.com
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
Optimizing Compiler Error? Louis Questions (Windows Mobile) 9 02-23-2009 07:09 PM
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


All times are GMT. The time now is 08:54 AM.


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