#2 mORMot 2 » "Access violation" error debugging » 2023-02-09 03:55:56

guxinglei
Replies: 2

var
  LineArray,LineJson:TDocVariantData;
  VarJson:Variant;

......
LineArray.Init;
LineJson.Init;
......
{
TDocVariantData(VarJson).InitJSON(LineJson.ToJSON());  //watch "VarJson":Access violation at 40021120 accessing 40021120
LineArray.AddItem(VarJson);
VarClear(VarJson);
}
LineArray.AddItem(Variant(LineJson)); //convert to Variant watch "LineArray": (275, [dvoIsArray], (), (Access violation at 40021120 accessing 40021120, Access violation at 40021120 accessing 40021120, Unassigned, Unassigned), 2)
LineJson.Clear;
......

IDE:Build with runtime packages

#4 Re: SyNode » Beta release of SyNode - ES6 JavaScript + NPM modules » 2018-04-23 08:40:18

ab wrote:

JQuery on server side?
Weird idea - there is no HTML DOM with SyNode (as with node.js).
One can be mocked by tools such as jsdom. This can be useful for testing purposes.

npm install jquery
npm install jsdom

Grab some website data, but some JS encryption functions are frequently modified and dynamic JS encryption is used.

example:
function getKey(a,page)
{
  c2 = $.fun1($.md5(a));
  e2 = eval(page);
  return e2.toUppercase();
}
page = '$.func2($.md5(c2))';
pubKey = getKey('123456',page)

Board footer

Powered by FluxBB