I am embedding gecko in my MFC app and try to call nsIDomNSHtmlDocument::ExecCommand with the "cut" command, but then my app crashes. Other commands work nicely (like indent, insertOrderedList, etc.)
It crashes in the call to 'DoClipboardSecurityCheck', which calls 'JS_InternString(cx, "cutcopy")' on line 4167. Cx is null, maybe that's the reason. It is obtained from 'stack->Peek(&cx)', line 4149.
In the MfcEmbed app from the Mozilla tree, this is not used for cut command, but instead the nsIClipboardCommands interface is used.
Can anyone tell me if I have to initialize that 'stack' somehow?
Thanks! _______________________________________________ mozilla-editor mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-editor
