Solved TD-22172, TD-22173: SalTabSetPageIcon using PNG issues

Report TD 5.x and 6.x bugs and possible workarounds.
Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 2912
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

TD-22172, TD-22173: SalTabSetPageIcon using PNG issues

Post by Dave Rabelink » 17 Jun 2015, 08:52

The function SalTabSetPageIcon gets unstable when PNG files are used.

Here the issues:

1) When a PNG has been loaded and shown on TabPage, changing the image to a non PNG does not work (eg PNG -> BMP)
So when multiple images should be shown, they must be of PNG type always, and not mix them.
When using other image formats (BMP, JPG, ICO) this issue is not present. You can load any of the types as needed.
(after loading BMP/JPG/ICO and load a PNG, you can not switch again to the other formats

Code: Select all

Call SalTabSetPageIcon( tab1, 1, "TestImage.PNG" )
Call SalTabSetPageIcon( tab1, 1, "TestImage.BMP" )
The BMP is not loaded/shown.

2) CRASH ! When a PNG is loaded and shown on TabPage, clearing the image (so remove the image) will result in a CRASH.
So

Code: Select all

Call SalTabSetPageIcon( tab1, 1, "TestImage.PNG" )
Call SalTabSetPageIcon( tab1, 1, "" )
Passing empty string "" or STRING_Null crashes TD.

This does not apply to any other format like BMP/JPG or ICO.
SalTabSetPageIcon_PNG_Issues.zip
You do not have the required permissions to view the files attached to this post.
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 2912
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Fixed: SalTabSetPageIcon using PNG issues

Post by Dave Rabelink » 23 Oct 2015, 10:49

Tested in TD 6.3 SP1.

Issues are fixed.
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Return to “Bug Reports”

Who is online

Users browsing this forum: [Applebot], [Ccbot] and 0 guests