General information
Category:
Coding, syntax and commands
Environment versions
Network:
Windows 2003 Server
>>TBH, this seems like bad design. Would it not be simpler, more efficient and less error prone for a hit to retrieve a current reference to the required oApp objects rather than hold a potentially out-of-date version ?
>
>This is a good design. And, BTW, if I get oApp as is, if another hit changes something in it, which happens very rarely, because I am not the only one doing it, like maintaining the data dictionary, this might cut off the oApp of another hit in progress. So, this is why I take a copy of it at first and use it during the hit, so it oApp, a Shared object, is changed in another hit, it will not affect the current hit in progress.
>
>So, basically, cloning is not good as is clones only the properties but preserved the object references as is, thus to the same memory location. That is why I am looking at a deep copy. However, .NET doesn't support a deep copy. This is why it gets complicated.
Since changing the oApp happens very rarely I would consider re-cycling the app rather than invalidating the version that may be in use by others. But, given that you are where you are, can you not at least identify those elements which are subject to change and clone *only* those rather than the whole oApp ?
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only