#6 wx.wxXmlDocument SetRoot

closed-fixed
None
5
2007-08-22
2007-08-17
Anonymous
No

Function SetRoot in wx.wxXmlDocument dont work correct.

Run this code two time (in wxluaedit.exe):

local xml=wx.wxXmlDocument();
local root = wx.wxXmlNode(wx.wxXML_ELEMENT_NODE, "RootNode");
xml:SetRoot(root);

and see exeption.

Version - wxLua-2.8.4.1-MSW_bin.

Discussion

  • Nobody/Anonymous

    example

     
    Attachments
  • John Labenski

    John Labenski - 2007-08-22
    • assigned_to: nobody --> jrl1
    • status: open --> open-fixed
     
  • John Labenski

    John Labenski - 2007-08-22

    Logged In: YES
    user_id=345194
    Originator: NO

    Thanks, fixed in CVS.

    The problem was that the document took ownership of the node and would delete it. wxLua has been corrected to handle all of the Xml functions that either take ownership of a pointer or release it.

     
  • John Labenski

    John Labenski - 2007-08-22
    • status: open-fixed --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks