| Summary: | StatusMeter fails to free window handles | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [RT] Riena | Reporter: | Stephan Mann <stephan.mann> | ||||||
| Component: | UI | Assignee: | Thorsten Schenkel <thorsten.schenkel> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | christian.campo, nobody | ||||||
| Version: | 3.0.0 | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| Whiteboard: | |||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 346670 | ||||||||
| Attachments: |
|
||||||||
|
Description
Stephan Mann
Created attachment 196322 [details]
Fix for the widget use case of StatusMeter
I didn´t have a look in the code but what about returning/managing ImageData instances instead of Image instances? ImageData is display independent and doesn´t eat handles. You could create your images, draw on gc ..., extract imagedata and the destroy the image... My 2 cents The only thing we can do in the Indigo timeframe is fix bugs. We cannot do API changes at this point in time. Created attachment 196432 [details]
this patch is using ImageData
The idea of Heiko to use ImageData was very helpful.
So the image can be disposed at the same position (class) where the was created (StatusMeterWidget and TableRidgetLabelProvider).
So it is easier to dispose all unused images.
patch committed |