--
Hi All
When synchronising two ecospaces in a multiclient application we have
the following error:
System.NullReferenceException: Object reference not set to an instance
of an object. at
Borland.Eco.Internal.DefaultFrontsideLocator.get_EnsuredLoopBack()
at Borland.Eco.Internal.MultilinkFrontsidePolicy.GetItem(Locator
locator, Int32 index) at
Borland.Eco.Internal.FrontsideMultilinkAdapter.get_Item(Int32 index)
at
Borland.Eco.Internal.TBoldObjectListPropertyAdapter.IElementCollection_g
et_Item(Int32 index)
at
Borland.Eco.Handles.RenderedListContents.DoDeriveAndSubscribe(Boolean
subscribe)
at
Borland.Eco.Support.Deriver.AbstractDeriver.set_DeriverState(State
value)
at Borland.Eco.Support.Deriver.AbstractDeriver.Derive()
at Borland.Eco.Support.Deriver.AbstractDeriver.EnsureCurrent()
at Borland.Eco.Handles.RenderedListContents.MakeListsCurrent()
at
Borland.Eco.Handles.HandleAdapter.Borland.Eco.Handles.INotifyOnIdle.Noti
fyOnIdle()
at Borland.Eco.Handles.DisplayQueue.DisplayAll()
at Borland.Eco.Handles.ElementHandle.EnsureAllBindingLists()
at Borland.Eco.Windows.Forms.WinFormDequeuer.OnIdle(Object sender,
EventArgs args)
at
System.Windows.Forms.ThreadContext.System.Windows.Forms.UnsafeNativeMeth
ods+IMsoComponent.FDoIdle(Int32 grfidlef)
at
System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeM
ethods+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32
reason, Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32
reason, ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Qmunity.Debugger.WinForm.Main() in c:\BDS 4.0
CSharp\Source\Qurrent\Qmunity Server\Debug\WinForm.cs:line 262
---------------------------
OK
---------------------------
The following actions preceed the error:
- The multiclient remoting ecospace is build as in the example(s)
- The lifetime return null is implemented
- In the winforms clients a timer is used to refresh the ecospaces.
(ecospace.PersistenceService.Refresh(true))
- The ecospace and model are placed in seperate dll's from the
application(s).
- The model has a multilink association -> User 1..* ------ 0..*
Customer
Everything works as expected except when we:
- Unlink a user from the list in customerX.Users in app 1
- UpdateDatabase (change shows up in app2)
- Relink the user to the list customerX.Users in app 1
- UpdateDatabase (change shows up / or above error occurs)
- open linked user in app2 (double clicking in the debug window open on
the customer.user list). Error always occurs...
Can anybody tell me what could be wrong?