09-13-2012 04:21 AM - edited 09-13-2012 04:25 AM
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
??
Solved! Go to Solution.
09-13-2012 02:47 PM
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.
09-13-2012 04:29 PM
I see no errors or warnings nor any message to debug output window on my CVI2009 SP1 on Win7
09-14-2012 01:19 AM
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... I have checked that on both systems the file is the same (located in the CVI2012\include folder)
09-14-2012 04:18 AM
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,
09-14-2012 04:38 AM
Hi ADagli,
the description is quite simple...
Thanks!
May be the debug message I receive may also give a hint... for me, however, it is not meaningful
09-14-2012 06:01 AM
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...
09-14-2012 09:49 AM
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,
09-14-2012 09:58 AM
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...
09-21-2012 02:43 AM
Hello,
although this is not an urgent topic I tend to forget about things less pressing 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.