G#

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 1094

Hi All,

I have a very strange issue that has just "appeared" in my code out of nowhere.

My current project uses only one G# class from the G#StaticTemplate.

Sometimes I get an error 1094 (queue is the wrong data-type) in the very first call I do on the G# class, which occurs very early in my code. The error comes from G#Object_RegisterClassAttributes.vi as shown in the attachment.

This is the second time in two days I have seen this problem. The first time I managed to mass-compile and clear out object caches and the problem went away, however I am not having any success today.

Does anybody have any tips on this?

Edit: I have just installed the latest version of the toolkit I can find (v1.6.0) on the AddQ website, but this still does not seem to help me. I am using LV2013 SP1.

Edit2: got it to work somehow. A combination of mass compiling and clearing out object cache seemed to work. Scary stuff...

N

0 Kudos
Message 1 of 3
(7,447 Views)

Hi Neil,

Nice to hear that you still using G#. I had a problem once with the common queues when I was mixing G# classes that were in a packed library and used together with non-packed library G# classes. Since it then actually was two G#Object.lvclass in the same application instance causing a conflict in the naming of the common queue. However, that was solved by automatically generate the queue name based on the scope (including the packed library name). That is the purpose of the "Queue name" VI generating the name of the queue which was added in G# Framework 1.5.0 (G# version 1.5.4). The only thing that would cause an error 1094 would be if you create another queue in your application named "G#Object.lvclass", but I think this is unlikely.

My guess is that this is a LabVIEW thing and you actually solved it by mass compiling and clearing out the object cache. I could also recommend ctrl+ shift + run button to force LabVIEW recompile everything. It usually fixes most strange LabVIEW issues.

Best regards,

Mattias

0 Kudos
Message 2 of 3
(5,927 Views)

Hi Mattias,

Yup, still using the toolkit, it is great!

Several times yesterday I got the same problem, and the only way to solve it is with the shift-run mass compile (as you suggested), doing a normal mass compile of my source directory did not work.

More interesting is that somehow when I get this error I also get something erroneous queued on some different queue (with no possible way in the code this could occur). I am 100% certain the problem I am seeing is a silly LabVIEW thing rather than a G# bug. It seems to happen when I change one of my other totally unrelated classes (native LVOOP).

Neil

0 Kudos
Message 3 of 3
(5,928 Views)