tags:

views:

162

answers:

1

If a user action is required for a function in my app then the associated icon on the toolbar is made to blink. This blinking is achieved by swapping the toolbar icon for another controlled by a timer event etc. Every time the icon is swapped the memory usage increases by 4K so eventually the app crashes depending on the user's available memory. The initial icon is an external ico file and not PB stockitem but the swapped icon is a stockitem (stockitem = Exclamation!). The external icon file is incorporated into the exe file via a PBR entry during the ORCA build. If a stockitem is used instead of external icon file then there is no problem. If the icon file is added to the application path (with no changes to the build or a rebuild, that is just adding the external icon file via explorer) and the app is then re-executed then there is no problem. I should say that none of the PB stockitems look suitable for the initial toolbar state. A similar reported problem with toolbar icons on the Sybase site suggests that using PB 11.5 would fix this. It did not !! Any ideas to fix this would be welcome.

+1  A: 

You can try with different pixel sizes of the ICO files. It could be that PowerBuilder has an issue with large ICO files.

Ian