Apache OpenOffice (AOO) Bugzilla – Issue 33862
[cws eforms2] data navigator : crash when add new element into new instance
Last modified: 2004-11-25 08:52:09 UTC
1. open a new xform 2. open the data navigator 3. add a new instance with the instance button 4. add a new element via the icon to thew new instance ==>> crash
pb -> dvo: please take over. It crashes in the forms dll, but the stack isn't significant.
dvo: Fixed in unoxml/../xpath/xpathapi.?xx dvo->lo: the fix is in your code; please review in case I didn't do things properly. The problem is that the xforms extension functions, particularly instance(..), need to access the XForms model. To do so, the XXPathExtensions object has a reference to the model, which the instance function implementation then accesses. There were two bugs: 1) When piping the reference to the function data through the libxml2 C code as void*, there was one '&' operator too much, so that the code attempted to access the wrong address. => superflous '&' was removed 2) The actual extension object was not kept alive during XPath evaluation, so that the void* pointer would point to deleted data. => Now the XXPathAPI object keeps a list of Reference<XXPathExtension> objects instead of the extension handles. This way, the extension object remains alive as long a the XXPathAPI which references it does.
assign issue to MSC
.
reassign to QA
Hi, fixed in cws eforms2 Bye Marc
Hi, verified in cws eforms2 Bye Marc
Hi, fixed in current developer build -> close. The current developer build can be found at http://download.openoffice.org/680/index.html Feel free to reopen if this issue is not fixed in the developer build. Bye Marc