I have a problem that has manifested since downloading 4.8. This works fine with 4.7. Any thoughts would be appreciated.
I have a javescript call as follows:
allnotestext = window.external.GetHEScriptCom(‘DiagAss.ReadTextFile’,‘none’);
This is the procedure in DiagAss
function ReadTextFile: String;
var
T: TStringList;
begin
Filename := GetGlobalVar("exfname", "");
S := GetGlobalVar("HEPubStorageLocation", "");
MessageBox(S, "Second Demo", MB_OK+MB_ICONINFORMATION);
if S = "" then exit;
Filename := IncludeTrailingBackslash(S) + Filename;
T := TStringList.Create;
// Loads the text file.
T.LoadFromFile(Filename);
// Gets the contents.
Result := T.Text;
T.Free;
end;
When I make the call in 4.7, it works fine. Under 4.8 the application closes.
Out of ideas or things to try at this end.