04-20-2012 06:50 AM
Hi,
I developed a small programm wich runs independet, but has also a interface to TestStand and includes:
using NationalInstruments.TestStand.Interop.API;
The program runs nice under Win7 with and without TestStand.
As soon as I start it with WinXP, it instantly crashes. What am I possible doing wrong?
Solved! Go to Solution.
04-20-2012 09:19 AM
Is TestStand installed on the WinXP machine? You may want to run the TestStand Version Selector which will re-register the ActiveX servers with the OS.
04-23-2012 12:46 AM
Thanks for your response.
I tried it without and with TestStand 2010 (same as Win 7 Laptop). Both did not work. Can you explain me the version selector more in detail?
04-23-2012 01:12 AM
04-23-2012
02:58 AM
- last edited on
11-05-2024
03:42 PM
by
Content Cleaner
Here's some stuff about the TestStand Version Selector. An error happens if the wrong version of the teststand engine is active (as only one engine is active at one time).
The error, if launching the Sequence Editor, is as this. What is the error message you get?
Stefan Egeler
NI Germany
04-23-2012 04:36 AM
Hi all,
thanks for your help. I started the version selector. Because I only installed TestStand 2010 on the Win XP Testmachine I couldn´t do much there.
After that I ran my sequence and it worked! But I´m still confused. The program developed in C#, .Net 2.0 and utiles
using NationalInstruments.TestStand.Interop.API;
Win7 -> Standalone and TestStand work
WinXP -> Standalon(exe) crashes, TestStand Sequence with .Net-Adapter Steps works
04-23-2012 05:15 AM
Sorry, I was wrong. My program crashes also with TestStand. But the error message has more details, than the one coming from Windows:
<ErrorText><![CDATA[An exception occurred inside of the call to .NET member 'TestStandInterface4':
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ComponentModel.Win32Exception: The operation completed successfully\r
at System.Drawing.Icon.Initialize(Int32 width, Int32 height)\r
at System.Drawing.Icon..ctor(SerializationInfo info, StreamingContext context)\r
--- End of inner exception stack trace ---\r
at System.RuntimeMethodHandle._SerializationInvoke(Object target, SignatureStruct& declaringTypeSig, SerializationInfo info, StreamingContext context)\r
at System.Reflection.RuntimeConstructorInfo.SerializationInvoke(Object target, SerializationInfo info, StreamingContext context)\r
at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context)\r
at System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder holder)\r
at System.Runtime.Serialization.ObjectManager.DoFixups()\r
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)\r
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)\r
at System.Resources.ResourceReader.DeserializeObject(Int32 typeIndex)\r
at System.Resources.ResourceReader.LoadObjectV2(Int32 pos, ResourceTypeCode& typeCode)\r
at System.Resources.ResourceReader.LoadObject(Int32 pos, ResourceTypeCode& typeCode)\r
at System.Resources.RuntimeResourceSet.GetObject(String key, Boolean ignoreCase, Boolean isString)\r
at System.Resources.RuntimeResourceSet.GetObject(String key, Boolean ignoreCase)\r
at System.Resources.ResourceManager.GetObject(String name, CultureInfo culture, Boolean wrapUnmanagedMemStream)\r
at System.Resources.ResourceManager.GetObject(String name)\r
at Sidebar.FGetIPAddress.InitializeComponent()\r
at Sidebar.FGetIPAddress..ctor()\r
at Sidebar.TestStandInterface4..ctor() [Error Code: -17500, Operation Failed.]]]></ErrorText>
04-23-2012
07:08 AM
- last edited on
11-05-2024
03:43 PM
by
Content Cleaner
Can you strip down the code to find the cause of the error? The Error Code -17500 has some very different possible causes ... For example these (they are just guessing and giving examples, but might help you find a grip on the error):
Complex Use of Step Type Menu Editor Causes -17500 Error
Programmatically Saving a TestStand File Gives Error 17500: Could Not Create Temporary File
Error 17500 The instance of the .NET class could not be retrieved
04-23-2012 07:15 AM
I looks like the icon file I used for the c# forms was the problem. I you look at the error message it begins with "System.Drawing.Icon.Initialize...."
I´m changing now all icons in all form, after changing the first helped me to run on step without error.
04-23-2012 07:23 AM
Yes it was the icon file. Somehow formats supportet by Win7, cause crashes und Win XP