Perhaps one more bug when using wrapper in XE2. I don’t have ability to test
it under different version of Delphi.
File: “JSINTF.PAS”
procedure TJSClassProto.DefineJSClass(AClass: TClass; AClassFlags:
TJSClassFlagAttributes);
From
{
if exclude or (Length(ip.ReadMethod.GetParameters) = 0) or (ip.Visibility < mvPublic) then
continue;
}
To
{
if exclude or (ip.ReadMethod = nil) or (Length(ip.ReadMethod.GetParameters) = 0) or (ip.Visibility < mvPublic) then
continue;
}
Sometimes, for some method, for example for some “Destroy” method
ip.ReadMethod is nil, therefor calling ip.ReadMethod.GetParameters cause
---------------------------
Debugger Exception Notification
---------------------------
Project XXXXXXXXXX.exe raised exception class $C0000005 with message 'access
violation at 0x0440b9d3: read of address 0x00000000'.
---------------------------
Break Continue Help
---------------------------
Original issue reported on code.google.com by andre...@diatomenterprises.com on 29 Nov 2013 at 7:56
Original issue reported on code.google.com by
andre...@diatomenterprises.com
on 29 Nov 2013 at 7:56Attachments: