Quantcast
Channel: NI TestStand topics
Viewing all articles
Browse latest Browse all 6525

Discrepancy in string returned from .NET library and what's stored in a local TestStand variable.

$
0
0

Hi all, apologies if this is simple. I couldn't find an answer by searching.

 

I have a C#.NET method that computes the MD5 hash of a local file, and returns the value as a string. I'm calling this from test stand, and storing the result in a local string variable (specifically named Locals.LocalHash).

 

I've attached my Visual Studio 2017 debugging session to my SeqEdit.exe process to facilitate debugging. The value returned from my method as seen in the Visual Studio watch window is:

fb‌​96‌​93‌​90‌​2c‌​5a‌​10‌​c2‌​b2‌​1a‌​e2‌​22‌​fd‌​ed‌​26‌​dc

 

The value saved into my Locals.LocalHash variable as seen in my TestStand watch window, however, is:

fb??96??93??90??2c??5a??10??c2??b2??1a??e2??22??fd??ed??26??dc

 

This obviously causes a mismatch when I check them.

 

Any ideas on why I might be seeing this? Thank you sincerely for the help.


Viewing all articles
Browse latest Browse all 6525

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>