read Controles properties from other thread (problem)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have the following structure :

public struct CA_structure
{
public int ModuleId;
//reference to TreeNode in tree view
public TreeNode ModuleTreeNode;
}

ArrayList listOf Modules //includes list of CA_structure
for example :
....
listOf Modules[0] = mCA_structure;

Now:
My application create Thread and run specific function which access this
list (listOf Module)
everything is OK except some of TreeNode properties,

mCA_structure = (CA_structure)listOf Modules[0];
here I have a problem the ModuleTreeNode.Name is OK but some of other
properties are not available and I get the following message for example in
ModuleTreeNode.Checked ->error : can not obtain value.

I tried to use invoke to receive the ArrayList but stile the same problem.

Any Idea please help

(Framework 1.1)
 
"Error cannot obtain value" sounds like a debugger message.

Is there an Exception being thrown at runtime? If so, what is it?
 

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