Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conversion from C# to VB.NET
Message
From
17/04/2013 12:02:16
 
 
To
17/04/2013 11:40:40
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01571173
Message ID:
01571231
Views:
37
>>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 ?
>
>Yes, I have been thinking about that. Basically, it is oProcess.oApp.Tables and a few others such as the oProcess.oApp.Provinces and oProcess.oApp.Countries. So, if I do it at that level directly, since it is a first level, will the clone works as the same as if it would be a deep copy? Because, if this is also only a reference copy, I will not be any better.

On reflection, I don't think it could work. If oApp is a singleton (or shared) then cloning an object which is a property of oApp means everyone will be referencing the same clone (i.e. oProcess.oApp.Tables = Clone(oProcess.oApp.Tables) achieves nothing). The objects which might be changed would need to be cloned independently and not be properties of oApp.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform