ygalipeau

PI SDK Problem when using arcvalue method in a Thread

Discussion created by ygalipeau on Apr 2, 2010
Latest reply on May 7, 2010 by MichaelvdV@Atos

i am working on a project in vb.net which i need to invoke the arcvalue in different thread (by using the threadpool object). when calling this function directly in the main thread, no problem, but when using different thread it crash.

 

 

 

i have attached to this post a very simple project that use the arcvalue in 3 scenarios  to illustrate the crash:

 

first one : call in main thread   OK

 

second: call in thread pool    Error

 

third call in stand alone thread    Error

 

is there something that i am not doing right?

 

thanks a lot

 

yannick

Attachments

Outcomes