I have downloaded the Secure Bridge trial version, works fine except when I close the application.
If Im running it from Delphi I get an access violation error, if Im running the compiled app it exits without error, but stuck in the memory forever.
Im using Windows 7 + Delphi XE7.
Here is the code to reproduce the error:
Code: Select all
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, ScHttp;
...
procedure TFrmMain.Button1Click(Sender: TObject);
var
Request: TScHttpWebRequest;
Response: TScHttpWebResponse;
begin
Request := TScHttpWebRequest.Create('https://www.optionsprofitcalculator.com/ajax/getStockPrice?stock=HCA&reqId=0');
try
Response := Request.GetResponse;
try
// process response ...
finally
Response.Free;
end;
finally
Request.Free;
end;
end;