Closed NORECS closed 10 months ago
Here's an interesting thread https://stackoverflow.com/questions/2180345/hunting-down-eoutofresources
I ran my program today > 4 hours, at least twice as long as before, without running out of resources. Only difference is I haven't clicked any links. So that may be related.
Are you using Thread or Application.ProcessMessages in your app?
It could be a problem with internal canvas control.
I made a fix to lock the canvas when painting the control. Please test your environment to see if any changes result.
Download the changes using this branch: https://github.com/digao-dalpiaz/DzHTMLText/tree/paint-out-of-res
Hello!
@NORECS, are you still having this problem ?
Please, read this information about the same error: https://stackoverflow.com/questions/24013287/drawing-transparent-message-to-screen-gives-out-of-system-resources
Maybe you are docking the component, and in a specific case, the bounds (Width and Height) became negative, so that error will raise.
This problem occurs in VCL environment because we are using an internal Bitmap to draw component image:
B := TBitmap.Create;
try
B.SetSize(Width, Height);
CanvasProcess(B.Canvas);
Canvas.Draw(0, 0, B);
finally
B.Free;
end;
Hello @NORECS , Are you still having this problem with the component?
Closing this issue as there was no response.
I've no idea what is happening but maybe it's DzHTMLText related?
Could be that doing few hours of repainting once per second leads to "Out of resources".
I have reportmemleaksonshutdown = true, and I don't get anything, but not sure if memory leaks from thread I have are reported.
Will try with madExcept turned on, maybe I'll get more info, but not sure I have enough time for another loop until tomorrow.
This is the call stack that made me think it could be related.