Hello ! After trying some more i found that the fault was on my side. I have a script which loads an environment with a certain session, book etc. and i have a function to reload that. The reloading did not take place correctly. Maybe i didn't closes the first session in a correct way ? Anyway: When i do things with a freshly loaded session i have no problem with Split.Destroy() Transaction.Destroy() Transaction.Clone()
They all work well. regards, Christoph Holtermann Am 26.05.2011 11:22, schrieb Christoph Holtermann: > Hello ! > > Has someone of you ever tried to remove a transaction or split via > python-bindings ? My simple approaches > > split_list=Account.GetSplitList() > split=split_list[-1] > split.Destroy() > > or > > transaction=split.GetParent() > transaction.Destroy() > > both lead to > > "Speicherzugriffsfehler" (english = segmentation fault) > > with the script and the python interpreter dying. > > regards, > > Christoph Holtermann > > _______________________________________________ > gnucash-devel mailing list > gnucash-devel@gnucash.org > https://lists.gnucash.org/mailman/listinfo/gnucash-devel _______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel