Powerbuilder V11.2 工具栏项目内存泄漏
如果我的应用程序中的某个功能需要用户操作,那么工具栏上的关联图标就会闪烁。这种闪烁是通过将工具栏图标交换为由计时器事件等控制的另一个图标来实现的。每次交换图标时,内存使用量都会增加 4K,因此最终应用程序会崩溃,具体取决于用户的可用内存。初始图标是一个外部 ico 文件,而不是 PB stockitem,但交换的图标是一个 stockitem(stockitem = Exclamation!)。在 ORCA 构建期间,外部图标文件通过 PBR 条目合并到 exe 文件中。如果使用库存项目而不是外部图标文件,那么就没有问题。如果图标文件被添加到应用程序路径(没有对构建或重建进行任何更改,只是通过资源管理器添加外部图标文件),然后重新执行应用程序,那么就没有问题。我应该说,PB 库存项目看起来都不适合初始工具栏状态。 Sybase 站点上报告的工具栏图标的类似问题表明使用 PB 11.5 可以解决此问题。事实并非如此!任何解决此问题的想法都将受到欢迎。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试使用不同像素大小的 ICO 文件。 PowerBuilder 可能存在处理大型 ICO 文件的问题。
You can try with different pixel sizes of the ICO files. It could be that PowerBuilder has an issue with large ICO files.