ailinwang / delphichromiumembedded

an implementation of cef3 in Delphi
0 stars 1 forks source link

GetHeaderMap doesn't work - Access Violation #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
procedure TChromium1.WebBeforeResourceLoad(Sender: TCustomChromium;
  const browser: ICefBrowser; const request: ICefRequest;
  var redirectUrl: ustring; var resourceStream: ICefStreamReader;
  var mimeType: ustring; loadFlags: Integer; out Result: TCefRetval);
var
  Headers: TCefStringMap; // or Pointer
begin
  request.GetHeaderMap(Headers);
end;

What is the expected output? What do you see instead?
Expecting the header map, getting Access violation every time.

What version of the product are you using? On what operating system?
0.1 + latest CEF binaries, Windows Vista x64

Please provide any additional information below.
GetHeaderMap is not working at all, throws access violation.

Original issue reported on code.google.com by ad...@enesce.com on 29 Aug 2010 at 3:47

GoogleCodeExporter commented 9 years ago
uses this code to handle string map.

var
  hm: ICefStringMap;
begin
  hm := TCefStringMapOwn.Create;
  request.GetHeaderMap(hm);

Original comment by hgourv...@gmail.com on 20 Sep 2010 at 1:48