Not modify global value in VB.NET

  • Thread starter Thread starter Mamatha
  • Start date Start date
M

Mamatha

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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top