Showing results for 
Show  only  | Search instead for 
Did you mean: 
Flexera beginner

Passing a property value to a C# dll function: passed value incorrectly contains null characters. \0\0\0\0\0\0

i am getting a property from msigetproperty and passing to a dll function. While debugging in this C# code, i see installshield is passing the property value followed by hundreds of null characters  (\0\0\0\0\0\0\0\0\).  These null characters are causing a crash within this C# method.

I upgraded from 2010 to 2019 and this has broken in 2019.  This has worked in 2010.

yes i have looked at the msigetproperty changes that were implemented in 2019.  this is all correct based on  documentation. 

try size = oObj.UpdateConfigurationsToUpgrade(szAppDataPath,selectedInstance);

selectedInstance is passed to the dll method.  selectedInstance has trailing null characters as see in the image.

Has anyone seen these null characters, null terminators repeating before when passing value to dll?  Is there a bug?  

Thanks for the help!

0 Kudos