salvadordf / WebView4Delphi

WebView4Delphi is an open source project created by Salvador Díaz Fau to embed Chromium-based browsers in applications made with Delphi or Lazarus/FPC for Windows.
https://www.briskbard.com/forum/
MIT License
282 stars 59 forks source link

Get response content #30

Closed psyfreaky closed 1 year ago

psyfreaky commented 1 year ago

I found probably a problem in MiniBrowser demo.

In the WVBrowser1WebResourceResponseViewGetContentCompleted procedure, there is this line TempOLEStream.Read(FResourceContents, TempOLEStream.Size);

This give me access violation. It should not read but write content.

(btw. thanks for Delphi 7 support)

salvadordf commented 1 year ago

I only have a Delphi 11.2 license and I can't convert all the demos.

I guess this is a TBytes issue in Delphi 7 and all I can tell you is that TempOLEStream.Read works fine with Delphi 11.2 and the HTML file is saved correctly.

I guess you can delete all the code from the functions that use TBytes in order to build MiniBrowser but I can't test this theory.