[pyxpcom] [PyDOM] Segmentation fault with python code in an event handler
by Klaus Nowikow other posts by this author
Jul 23 2007 6:10AM messages near this date
view in the new Beta List Site
Re: [pyxpcom] Mixture of Python and Javascript
|
Re: [pyxpcom] [PyDOM] Segmentation fault with python code in an event handler
Hi!
The following test code fails with a segmentation fault. The button works as
expected without errors, but after some time the window closes with a segmentation
fault. The same happens when I close the window by myself and even if I never
click the button.
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window id="main"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
script-type="application/x-python"
>
<button label="Test" onclick="print 'Test'"/>
</window>
I had the same error with event handlers of a tree node.
Replacing the button's onclick handler with an onload handler in the
window node works without failure.
I am using xulrunner from CVS trunk on linux-x86.
Regards,
Klaus
P.S.: Is "script-type" the correct attribute? I also found references to
"scripttype" and "scriptType" on the web.
_______________________________________________
pyxpcom mailing list
pyxpcom@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Klaus Nowikow
Klaus Nowikow
Mark Hammond
Klaus Nowikow
Klaus Nowikow
|