I have a Windows Forms application, that is using CSLA 3.0.2.0, and I am using Remoting. I am noticing some wierd object behavior if I open the same form with two instances of the same object, although the data in the objects is different.
To outline my problem, here is an example:
Form1 is opened with Object1. Object1 is of type A. Object1 is populated with data for Person1. No changes are made to Object1. This instance of Form1 is left open.
Another instance of Form1 is opened with Object2. Object2 is also of type A. Object2 is populated with data for Person2. Changes are made to Object2. Object2 is saved and this instance of Form1 is closed.
Back to the original instance of Form1 with Object1. Object1 is now dirty, although no changes have happened to it.
So, you can see the problem I am having. I am leaning towards it being a threading problem, but I am not sure. Can anyone provide some advice?
Could you provide a little bit more information? I have scoured my entire solution, and I cannot find any 'static' declaration. However, I do have ReadOnly properties in my object, and I read somewhere that ReadOnly properties are used as static. Is this the problem?
I am really confused what static properties would have anything to do with the problem I am experiencing.
No problem, your post actually got me thinking in the right direction, so thanks!
Copyright (c) Marimer LLC