Re: [Modeling-users] CustomObject.globalID() problem
Status: Abandoned
Brought to you by:
sbigaret
From: Sebastien B. <sbi...@us...> - 2004-10-08 09:03:53
|
no...@ti... wrote: > On 05 Oct 2004 23:42:47 +0200 > Sebastien Bigaret <sbi...@us...> wrote: >=20 > > Okay; if you observe that a freshly fetched object has None as globalId= (), > > this is definitely a bug, so do not hesitate to report! >=20 > I have a deadline on friday and don't have time to write a test, it's nas= ty > ( or simply a problem with my code ) since it appears only if another thr= ead is > fetching the same object from the same EC while I try to retrieve the Glo= balID. > Wouldn't worry until I got some real evidence :-) Are you, by any chance, concurrently accessing the same EC without locking it? If you do, then maybe you should probably re-read the dedicated section in the User's Guide :) http://modeling.sourceforge.net/UserGuide/framework-integration-MT-consider= ations.html Operations on an EC is not thread-safe by default, and concurrent access w/o locking it first could lead to the behaviour you observe (where an object can be observed w/ a gID=3D=3DNone by a given thread while the fetch procedure is still processed in an other thread). -- S=E9bastien. |