B
Boni
Dear all,
it seems that I have a multithreadng problem. I am not sure.
class A
UID as integer
shared ctr as integer=0
sub new()
UID=ctr
ctr+=1
end sub
end
Sometime I get 2 A objects with the same UID. I don't explicitely start
thread. Also it it possible that my class library is called from many
threads.
In order to find out, if it is really threading problem I need unique some
sort thread ID, which will be unique for each thread ?
But I can find only domainID in threading.thread.
Please is it possible to get some unique threadID or hashcode or something
else in .NET 1.1?
it seems that I have a multithreadng problem. I am not sure.
class A
UID as integer
shared ctr as integer=0
sub new()
UID=ctr
ctr+=1
end sub
end
Sometime I get 2 A objects with the same UID. I don't explicitely start
thread. Also it it possible that my class library is called from many
threads.
In order to find out, if it is really threading problem I need unique some
sort thread ID, which will be unique for each thread ?
But I can find only domainID in threading.thread.
Please is it possible to get some unique threadID or hashcode or something
else in .NET 1.1?