[Scilab-users] Counter of pointers to an XML object, and clear destructor

2018-07-28 Thread Samuel Gougeon
Hello, I am doing some tests about the save() function, in order to document its behavior when saving pointers to some objects. There is the case of XML objects: Contrarily to graphic handles, that are pointers whose reloading restores the pointed graphics, saving XML pointers is possible, bu

Re: [Scilab-users] Counter of pointers to an XML object, and clear destructor

2018-07-28 Thread Rafael Guerra
Regarding the save() function, the output *.sod file fails to be consumed by load() for some graphical handles. Example of error message in Scilab 6.0.1: load: Unable to load 'h'. --> typeof(h) ans = handle --> h h = Handle of type "uicontrol" with properties: =

Re: [Scilab-users] Counter of pointers to an XML object, and clear destructor

2018-07-29 Thread Samuel Gougeon
Le 28/07/2018 à 22:21, Rafael Guerra a écrit : Regarding the save() function, the output *.sod file fails to be consumed by load() for some graphical handles. Example of error message in Scilab 6.0.1: load: Unable to load 'h'. Yes, it was reported this week as http://bugzilla.scilab.org/1

Re: [Scilab-users] Counter of pointers to an XML object, and clear destructor

2018-07-29 Thread Rafael Guerra
Samuel, Thanks for confirming & bug reports. Regards, Rafael From: users On Behalf Of Samuel Gougeon Sent: Sunday, July 29, 2018 12:34 PM To: Users mailing list for Scilab Subject: Re: [Scilab-users] Counter of pointers to an XML object, and clear destructor Le 28/07/2018 à 22:21, Ra

Re: [Scilab-users] Counter of pointers to an XML object, and clear destructor

2018-07-29 Thread Antoine ELIAS
Hello Samuel, In XMLObject there is two levels of reference,  - one on MList (managed by reference counter)  - one on internal XMLObject (internally manager like handle, an integer that link to a C++ object) xmlDelete destroy internal XMLObject clear destroy (unreference and destroy if ref <=

Re: [Scilab-users] Counter of pointers to an XML object, and clear destructor

2018-08-06 Thread Samuel Gougeon
Hello Antoine, Thanks for your answer. I am afraid that, from a user point of view -- that's mine--, it is hard to understand in pratical the way it works, and why it works like this: Le 30/07/2018 à 00:55, Antoine ELIAS a écrit : Hello Samuel, In XMLObject there is two levels of reference,