You are not logged in.
Pages: 1
Hi,
I have tried to compile Example 2 in Delphi XE3, but got AV.
The problem is related to
https://synopse.info/forum/viewtopic.php?id=1733
To make it work, following functions must be used instead of Properties:
SpiderMonkey 45:
JSRuntime
function GetPrivate: Pointer;
procedure SetPrivate(const Value: Pointer);
function GetOptions: PJSRuntimeOptions;
function GetGCParameter(key: JSGCParamKey): uint32;
procedure SetGCParameter(key: JSGCParamKey; const Value: uint32);
function GetErrorReporter: JSErrorReporter;
procedure SetErrorReporter(er: JSErrorReporter);
function GetInterruptCallback: JSInterruptCallback;
procedure SetInterruptCallback(callback: JSInterruptCallback);
JSRuntimeOptions
function getOptions(const Index: Integer): Boolean;
procedure setOptions(const Index: Integer; const Value: Boolean);
SpiderMonkey 52:
JSContext
function GetPrivate: Pointer; {$ifdef HASINLINE}inline;{$endif}
procedure SetPrivate(const Value: Pointer);
JSContextOptions
function getOptions(const Index: Integer): Boolean;
procedure setOptions(const Index: Integer; const Value: Boolean);
For some reason SM52 fRt.GCParameter[] works, in SM45 need fRt.SetGCParameter
Offline
IMHO, this is a some kind of dark magic. AV appear only in XE3, with other compiler versions everything is OK ( we even compile for linux using FPC). I don't think we need to fix a XE3 specific on the library level. You can compile with XE2 - in case you buy a XE3 XE2 is free for you as far as i remember.
Offline
I can have only Delphi 7, so FPC for windows is the only way for me I suppose.
I really don't know why, when using Properties instead of Parameter there is allways nil.
And FPC for linux is what I'm looking forward.
Offline
I've created a dedicated forum entry for SyNode.
See https://synopse.info/forum/viewforum.php?id=22
Don't hesitate to create multiple threads in this new forum category!
Online
Pages: 1