Hello Peter
my first guess would be create a shared method were you reinitialize the
variabel when needed
public class Test
private shared mObject as Object = New myclass.object
Public shared sub ReInitObject
mObject=New myclass.object
end sub
......
............
Bether in my opinion would be to avoid static instances at all , as it is
considered as bether coding practice
( or you must have a verry good reasson to use shared , static fields and or
methods
HTH
Michel
"Peter" <Pe***@discussions.microsoft.comschreef in bericht
news:9F**********************************@microsof t.com...
>I have the following class:
public class Test
private shared mObject as Object = New myclass.object
...
Normally, a new instance of that class will share the existing value of
mObject. However, for some special cases, I need it to reinitialize
mObject
as if mObject is not declared as shared.