Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing pointer of NIGraph type

Hello
I'm trying to develop a Dialog application with Measurment studio plugins, mostly because I want to use your NIGraph class. I created this graph in my dialog and it works allright. I can control my graph from within the dialog with no problems at all. The problems come when I try to control it from another class. I created a "measurment thread" and passed a pointer of my Graph via constructor into it (so the thread would be able to control the graph). The compiler doesn't show any problem but whenever I call any function of my graph ( PlotY() for example) I get a RunTime error and my app crashes. Thanks for any help, it's quite urgent. I may be able to send source files if neccesarry. Bye..Michal 

Message Edited by miisoquer on 11-14-2005 08:59 AM

0 Kudos
Message 1 of 2
(3,110 Views)
I suspect that you are not calling CoInitialize in your measurement thread. See this post - http://forums.ni.com/ni/board/message?board.id=231&message.id=3215&query.id=123268#M3215
 
 
0 Kudos
Message 2 of 2
(3,101 Views)