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

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

Beta Versions This forum is the place to discuss issues regarding Basic4ppc beta versions.

Strange cast error

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-11-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 Strange cast error

This program gives a strange cast error when run in the IDE but not when optimised compiled. The much bigger program that this was cut down from also ran fine when compiled.

Press the Fail button to get the error.
Reply With Quote
  #2 (permalink)  
Old 10-11-2008, 06:43 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,700
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Thanks agraham.
This bug will be fixed in the next version (one after 6.50).

It will happen when the assigned image is a reference to an external object.
The workaround is to reassign the image before changing the mode property:
Code:
Image1.Image = Bitmap.Value
Image1.Mode = cCenterImage
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
CreateEmptyImage strange error DaveW Questions (Windows Mobile) 1 11-05-2008 06:49 PM
Specified cast is not valid bish0p Questions (Windows Mobile) 1 07-11-2008 07:17 PM
Unable to cast Object Treeview.node Mr_Gee Questions (Windows Mobile) 15 03-21-2008 06:13 PM
Specified cast is not valid skipper Questions (Windows Mobile) 7 03-12-2008 07:17 AM
Strange characters pmu5757 Questions (Windows Mobile) 2 09-30-2007 08:56 AM


All times are GMT. The time now is 02:48 PM.


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