LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Interactive Execution surprise

Solved!
Go to solution

Hello,

 

looking at the question posted here I came across some strange behaviour of the Interactive Execution window...

 

I entered the following code (you have to start somewhere, this is for the definition of NULL) and ran it

 

#include <ansi_c.h>

 

The Debug Output windows says:

 

SXS: RtlQueryInformationActivationContext() - Caller asked to use activation context from hmodule but passed NULL

 

??

0 Kudos
Message 1 of 14
(4,486 Views)

I can add that I could reproduce this behavior on my computer running Windows XP, i.e. restarting CVI, opening a new Interactive Execution window...led to the same result.

 

However, I could not reproduce it on my other computer, running Win7.

0 Kudos
Message 2 of 14
(4,468 Views)

I see no errors or warnings nor any message to debug output window on my CVI2009 SP1 on Win7



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 3 of 14
(4,464 Views)

Thank you, Roberto, for looking into it!

 

So we agree that this is not a problem on Win7 - but it still happens on my XP computer...Smiley Frustrated I have checked that on both systems the file is the same (located in the CVI2012\include folder)

0 Kudos
Message 4 of 14
(4,461 Views)

Hi Wolfgang,

 

can you please add an Example file and a short description what to do with what file, so I can test it here with CVI2012 on a XP computer and try to reproduce this behaviour.

 

Best regards,

Abduelkerim

Sales
NI Germany
0 Kudos
Message 5 of 14
(4,459 Views)

Hi ADagli,

 

the description is quite simple...

 

  1. Open the Interactive Execution window (Window / Interactive Execution)
  2. Enter or paste: #include <ansi_c.h>
  3. Click the green run button

Thanks!

 

May be the debug message I receive may also give a hint... for me, however, it is not meaningful

0 Kudos
Message 6 of 14
(4,454 Views)

I tend to think that something is wrong with this computer...

 

My new discoveries:

 

1) the same problem appears for any #include in the Interactive Execution window

2) The function RtlQueryInformationActivationContext() listed in the debug window belongs to ntdll.dll

3) In general, the Interactive Execution window is working properly. For example:

 

typing

 

printf ( "Hello world" );

 

results in the CVI popup message:

 

"The following include statement are needed in the Interactive Execution window:

 

#include <ansi_c.h>

 

Do you want to add them?

 

Pushing the 'Yes' button results in the code

 

#include <ansi_c.h>
printf ( "Hello world" );

 

Running it gives both the 'Hello world" text AND the build output mentioned earlier...

0 Kudos
Message 7 of 14
(4,447 Views)

Hi Wolfgang,

 

thank you for your post.

 

I could reproduce this behaviour.It does nor seem to be an error, but what it means is not clear for me.

I will forward this to our R&D department. As soon as I have an answer I will post it here.

 

Best regards,

 

Abduelkerim

Sales
NI Germany
Message 8 of 14
(4,441 Views)

Wow,

 

thanks! Actually I didn't expect this to be reproducible, to me it appeared so peculiar. Puh, I am relieved that it is not my bad mistake...

0 Kudos
Message 9 of 14
(4,437 Views)

Hello,

 

although this is not an urgent topic I tend to forget about things less pressing Smiley Wink So is there any news available allowing me to personally 'close' this case (e.g. accept it as strange but expected behavior, categorize it as bug...) ? Thanks.

0 Kudos
Message 10 of 14
(4,342 Views)