Vote UpVote

Two FireMonkey nasties

Delphi Haven – As the title says, here’s two little FireMonkey nasties I’ve got round to QC’ing: TBitmap.LoadFromFile does not raise an exception when the file does not exist – instead, it just silently returns (see QC 102636). TFmxObject.Children (which is equivalent to TWinControl.Controls in the the VCL) returns nil on an out-of-range index rather than raising an exception. Combined with the fact the ‘as’ operator accepts a nil source, this can quickly cause nasty, generic access violations on typos rather than a clean exception that shows where the error actually lies ...
Favorite? Off-Topic? Chris Rolliston @ 2012-01-20 19:57


Visits: 791
Votes: 3
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)