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.

Compiler process error?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-23-2010, 01:59 AM
Senior Member
 
Join Date: Nov 2009
Posts: 153
Default Compiler process error?

I just spent a while trying to understand a bug I had which only happened with the compiled exe, but not the source code.

I had an Image control being populated at the end of a subroutine. It worked fine in source but the exe file would not re-populate the image control with a new image. The image seemed frozen with the first image it was populated with.

I tried everything, refresh, hiding and reshowing, etc. Finally I got it to work by simply moving the code that assigned a picture to this image control to the top of the subroutine (it was at the end of the code).

There was no other code that was 'getting in the way' of this image code being correctly processed.

I vaguely recall an error like this with, C, I think. It was something to do with how the code was compiled down to exe binary. I could post the relevent code but I suspect it would be spurious.

Don't you just love programming?
Reply With Quote
  #2 (permalink)  
Old 03-23-2010, 04:33 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,714
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Please post your source code if possible.
Reply With Quote
  #3 (permalink)  
Old 03-25-2010, 03:27 PM
Senior Member
 
Join Date: Nov 2009
Posts: 153
Default

Quote:
Originally Posted by Erel View Post
Please post your source code if possible.
Hi Erel
Attached is the source for the program in which the error happens.

The SUBroutine with the error is 'Display_bird'.

I have added comments describing the error and where it happened.

I am using v6.90beta

Sarah
Reply With Quote
  #4 (permalink)  
Old 03-25-2010, 04: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

You have an Errorlabel that will silently trap any errors. If an error occurred before the code at position B was reached then the code will not execute. Try again with a msgbox after the err2 label to see if that is the problem.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #5 (permalink)  
Old 03-26-2010, 03:21 PM
Senior Member
 
Join Date: Nov 2009
Posts: 153
Default

Quote:
Originally Posted by agraham View Post
You have an Errorlabel that will silently trap any errors. If an error occurred before the code at position B was reached then the code will not execute. Try again with a msgbox after the err2 label to see if that is the problem.
Thanks Andrew
Yes. That would be it except that the code works perfectly within the IDE from source. It only goes wrong from the compiled exe file. So if an error is being generated it is doing it from the compiled exe file code alone.
Reply With Quote
  #6 (permalink)  
Old 03-26-2010, 03:32 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

Quote:
Originally Posted by SarahWard View Post
So if an error is being generated it is doing it from the compiled exe file code alone
Exactly! Just try it.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
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 error CS1525 sueb Questions (Windows Mobile) 1 03-13-2010 08:22 PM
Help with Compiler error Simontelescopium Questions (Windows Mobile) 2 10-20-2009 09:42 PM
Optimizing Compiler Error? Louis Questions (Windows Mobile) 9 02-23-2009 07:09 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 03:49 PM.


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