LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 95: Event Queue could not be created

A got tripped up on a little ActiveX event issue. Was able to solve it but thought I'd share the solution in case anyone else hits it. For those of you who really know ActiveX events you can talk amongst yourselves or feel free to laugh at me.

Anyway I used List Event Descriptions.vi to list the events supported by an ActiveX control I was using (which was poorly documented). Said VI returns an array of strings each of which is the Function Description corresponding to an event. They are in the form: "functionName(dataType parameter,..)" I used the output of this to build a typedef enumeration of the events. For example the event foobar that takes no arguments would be reported "foobar( )".

I then fed in these
strings to the Event Name input of Create ActiveX Event Queue.vi. So in my example I input the string "foobar( )" (as it was reported above) which resulted in the error:

Error 95: Event Queue could not be created. Make sure the event exists and the name is spelled correctly.

After a little trial and error I descovered that the Event Name can't directly take the output of List Event Descriptions.vi! Only the function name (which is the same as the event name I guess) can be supplied. So I wired in "foobar" instead of "foobar( )" and everything worked fine.
Message 1 of 2
(2,607 Views)
Thank you for posting. I think that it is great that you shared your experiences so that others can avoid the problems in the future.
0 Kudos
Message 2 of 2
(2,607 Views)