Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Major mixup in two ASP.NET transactions
Message
From
25/09/2006 00:04:01
 
 
To
25/09/2006 00:00:05
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01150471
Message ID:
01156821
Views:
44
>Do you have any shared properties or methods in your Framework.Framework.Data class? This could cause these kinds of problems.

Shared has been gone since a very long time. There is no instance of that keyword nowhere in the application.

But, I was looking at message #1150765. Viv mentioned in that message that if two objects are being instantiated from the same class that they are in fact using the same instantation. If yes, that would be the cause of my problems. But, to me, if I do this:
        Dim loDataProviderFederation As Framework.Framework.Data = New Framework.Framework.Data(oProcess)
        Dim loDataProviderMaster As Framework.Framework.Data = New Framework.Framework.Data(oProcess)
        Dim loDataProviderSchool As Framework.Framework.Data = New Framework.Framework.Data(oProcess)
        Dim loDataProviderStyle As Framework.Framework.Data = New Framework.Framework.Data(oProcess)
        Dim loDataProviderStyleDefinition As Framework.Framework.Data = New Framework.Framework.Data(oProcess)
        Dim loDataProviderWeapon As Framework.Framework.Data = New Framework.Framework.Data(oProcess)
I always thought each of those objects were being instantiated in their own Framework.Framework.Data environment. But, when I read his message, it doesn't seem to be the case.

Basically, how I can adjust to make sure that whenever I create an instance of a class that it will be independent and not shared across the application?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform