HtmlViewer
HtmlViewer copied to clipboard
On Lazarus/Mac/Carbon TDibGetDIBX
Not sure if a bug per-se - but behavior is different on Mac than on Windows here:
There appears to be an issue in HtmlImages TDib.GetDIBX where the call to GetDIBits sometimes return 0 making GetDIBX throw outofmemory (without actually being out of memory?)
I can investigate deeper if wanted?
Beyond that - I got htmlviewer loading websites on the Mac/Lazarus/Carbon combo
Thanks for your hard work running HtmlViewer on Mac/Carbon! It is much appreciated! I would like to encourage you to push your results to github.
I will give it a go again. At first I simply commented out throwing the error thinking it is OK if an image is not always shown. However - when browsing inside HTMLViewer I get a SigSEV and it is not particular easy to reproduce to debug step into.
I can't find the source of the problem. It is somewhere deep in carbon canvas with release of handles. Do you need me to push the other updates I repored? (Never really used GitHub) But the moment the crash thing solved on Mac, HtmlViewer is the far best light-weight solution available (I know some want Chronium, but that is a minimum a 30mb solution)
For what it is worth - the test site I can repeatedly crash HtmlViewer on (e.g. initial load then max two clicks of navigation) webhelpforums.net
Problem in Lazarus 1.8.0 as well