Actually, I also am getting this exact same problem. HOWEVER, only
when I am "debugging" the program. If I run it standalone, the error
does not occur. And that is the _dbg.exe version or the standard .exe
version. Either run standalone works fine. It is really quite
repeatable and given that it does work standalone, it is hard to see
how the value passed could be wrong.
I used example6 from the tutorial as a basis.
Is there a way to fix this? I don't want to give up the ability to
debug in CVI just to get tooltips.
I am running version 6.0 of CVI, by the way.
Thanks for your help on this.
- Harold
Chris Matthews wrote in message news:<506500000005000000794F0000-1005954886000@exchange.ni.com>...
> This error is pretty common and means t
hat the control constant passed
> to a user interface function is not a valid control for that function
> call. You could be sending in an invalid constant to one of the
> tooltip functions. There is really no way for me to know what is
> causing this without seeing your code. You have the source code for
> the tooltip.fp so it should be pretty easy to debug on your end. Just
> add the tooltip.c file to your project and then debug it. When you
> get the error, it should break in the tooltip.c file and show you
> exactly where the error occurred. Then you can look at the call stack
> and see where it happened in your program and look at the values of
> the variables and constants you are sending in to the functions.
>
> Good luck,
>
> Chris Matthews
> National Instruments