By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,341 Members | 1,553 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,341 IT Pros & Developers. It's quick & easy.

Not modify global value in VB.NET

P: n/a
Hi

I have a mutithreading application in VB.NET.
In one function i stored some data in dictionaries.
i declared global value to store data in dictionaries.
Every time dictionary pointer has incremented.

for example :public indx as integer

dic.additem(indx(i))

After stored in dictionaries,i started a new thread.
That new thread executes another function.
I was used those dictionary values in that function.
By using for loop i retrieved dictionary values.
so ever time dictionary value has changed.
But in the thread started function,the value has not
changed.
What is the reason for not changing the dictionary pointer?
If anyone knows please let me know.
Mamatha
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Mamatha,

In my idea can that only mean that it is not global, how did you make it
global and did you make yes or no from your multithreading methods seperated
classes?

Cor

"Mamatha" <ma***********@yahoo.com>
..
Hi

I have a mutithreading application in VB.NET.
In one function i stored some data in dictionaries.
i declared global value to store data in dictionaries.
Every time dictionary pointer has incremented.

for example :public indx as integer

dic.additem(indx(i))

After stored in dictionaries,i started a new thread.
That new thread executes another function.
I was used those dictionary values in that function.
By using for loop i retrieved dictionary values.
so ever time dictionary value has changed.
But in the thread started function,the value has not
changed.
What is the reason for not changing the dictionary pointer?
If anyone knows please let me know.
Mamatha

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.