finally, i've tested the c++ version of the property browser. i made a signal slot connection from browser.currentItemChanged(QtBrowserItem) to a slot of my own und checked the given item. These items were always the same items (means no new items were created). Then i've done the same test in jambi with the result, that the given items where always new java objects (ok, you mentioned that before) AND with new nativeIDs. So, it seems that the c++ version works correct, but the java binding does not. That means the failure is somewhere inside the binding...
Every click inside the TreeBrowser creates a new QtBrowserItem and this triggers a creation of a new QtProperty... klemensl ----------------ursprüngliche Nachricht----------------- Von: "Eskil Abrahamsen Blomfeldt" [email protected] An: "Klemens Loschy" [email protected] Kopie: [email protected] Datum: Wed, 15 Jul 2009 12:20:37 +0200 ------------------------------------------------- > Klemens Loschy wrote: >> >> the native ID of the objects change too, so comparing them is not possible >> (at the moment). >> If i get you right, the change of the native ID causes the creation of new >> Java Objects, because the jambi cache has no Java Object for the passed >> native ID. And if the native ID changes, a new C++ Object was created? So >> the question is: why are always new C++ Objects created? >> > > Yes, the native ID of an object is identical to the native pointer to > the object, i.e. the address of the object in memory. If this value > changes with each call, then it should be reproducable in C++ with no Qt > Jambi interference. > > -- Eskil > > > -- > SEQIS Spam & Virus Agent: Message ok > > -- Mit freundlichen Gruessen, Klemens Loschy KeepLiquid Consulting _________________________________________ SEQIS GmbH - The Austrian Software Test Experts! Marktplatz 3, 2380 Perchtoldsdorf, Austria cel +43 664 TESTS 06 cel +43 664 83787 06 fax +43 1 867 54 63-50 web http://www.SEQIS.com, http://www.KeepLiquid.com *Frank Bieser, CIO, HEROLD Business Data GmbH*, über SEQIS: 'Die Zusammenarbeit mit SEQIS in unseren Projekten ist von einem Hoechstmass an Professionalitaet und Zielorientierung gepraegt. Zahlreiche gemeinsame Vorhaben wurden partnerschaftlich und hoch erfolgreich abgewickelt. Auch fuer die Zukunft sehen wir in SEQIS einen unserer verlaesslichsten Partner.' ________________________________ http://www.seqis.com/disclaimer -- SEQIS Spam & Virus Agent: Message ok _______________________________________________ Qt-jambi-interest mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
