Click here to Skip to main content
15,922,015 members
Home / Discussions / C#
   

C#

 
AnswerRe: how can i import another projects/language .exe file into my project to run in C# Pin
Christian Graus30-Dec-08 4:26
protectorChristian Graus30-Dec-08 4:26 
GeneralRe: how can i import another projects/language .exe file into my project to run in C# Pin
D V kirankumar30-Dec-08 23:00
D V kirankumar30-Dec-08 23:00 
QuestionSubclassing Help Pin
JimWWhite30-Dec-08 1:22
JimWWhite30-Dec-08 1:22 
AnswerRe: Subclassing Help Pin
Brij30-Dec-08 2:14
mentorBrij30-Dec-08 2:14 
GeneralRe: Subclassing Help Pin
JimWWhite31-Dec-08 1:24
JimWWhite31-Dec-08 1:24 
QuestionThread marshalling problem Pin
Member 428013630-Dec-08 0:47
Member 428013630-Dec-08 0:47 
AnswerRe: Thread marshalling problem Pin
Natza Mitzi30-Dec-08 4:33
Natza Mitzi30-Dec-08 4:33 
GeneralRe: Thread marshalling problem Pin
Member 428013630-Dec-08 5:14
Member 428013630-Dec-08 5:14 
Thanks for the reply. No exceptions occur, the fail is simply that it returns an empty array instead of an array of its children.

Since my post I have also discovered that some of the properties like Name, etc of the AutomationElement object also return empty values when called from the other thread. What appears to be happening is the AutomationElement in this case is only valid in the thread it was created in.

AutomationElement is a .Net class, I have no visibility of it's implementation, but perhaps in this case it's using COM objects internally which and these only work in the thread they were created in.

I was expecting .Net would take care of that kind of thing and marshal whatever it needs over to the other thread. Guess I am mistaken. Although really that's part of my question. Perhaps someone can come along and say "no, .Net will marshal it all, it must be some other problem" or "yes that's right you can't expect this to work from another thread" and hopefully someone will say "but here's how you could do it"
QuestionResource file issue Pin
George_George30-Dec-08 0:24
George_George30-Dec-08 0:24 
AnswerRe: Resource file issue Pin
Natza Mitzi30-Dec-08 5:02
Natza Mitzi30-Dec-08 5:02 
GeneralRe: Resource file issue Pin
George_George30-Dec-08 18:09
George_George30-Dec-08 18:09 
QuestionPrint Reports Pin
zeeShan anSari30-Dec-08 0:09
zeeShan anSari30-Dec-08 0:09 
AnswerRe: Print Reports Pin
Paddy Boyd30-Dec-08 0:44
Paddy Boyd30-Dec-08 0:44 
GeneralRe: Print Reports Pin
zeeShan anSari30-Dec-08 0:54
zeeShan anSari30-Dec-08 0:54 
GeneralRe: Print Reports Pin
Paddy Boyd30-Dec-08 1:00
Paddy Boyd30-Dec-08 1:00 
QuestionMaking Control of Form Pin
Xmen Real 29-Dec-08 23:25
professional Xmen Real 29-Dec-08 23:25 
AnswerRe: Making Control of Form Pin
rah_sin29-Dec-08 23:31
professionalrah_sin29-Dec-08 23:31 
AnswerRe: Making Control of Form Pin
Tom Deketelaere29-Dec-08 23:45
professionalTom Deketelaere29-Dec-08 23:45 
GeneralRe: Making Control of Form [modified] Pin
Xmen Real 30-Dec-08 1:43
professional Xmen Real 30-Dec-08 1:43 
AnswerRe: Making Control of Form Pin
Abdul Rahman Hamidy30-Dec-08 9:41
Abdul Rahman Hamidy30-Dec-08 9:41 
Questionhow do we daclare an array in a struct? Pin
dec8229-Dec-08 23:21
dec8229-Dec-08 23:21 
AnswerRe: how do we daclare an array in a struct? Pin
N a v a n e e t h29-Dec-08 23:27
N a v a n e e t h29-Dec-08 23:27 
GeneralRe: how do we daclare an array in a struct? Pin
dec8230-Dec-08 0:01
dec8230-Dec-08 0:01 
GeneralRe: how do we daclare an array in a struct? Pin
User 665830-Dec-08 0:44
User 665830-Dec-08 0:44 
Questiondomain servers list Pin
calanit29-Dec-08 23:17
calanit29-Dec-08 23:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.