xsharp.eu • 2.8 Exception with String2Psz on Windows 2019 Servers
Page 1 of 1

2.8 Exception with String2Psz on Windows 2019 Servers

Posted: Mon May 03, 2021 7:32 am
by ArneOrtlinghaus
We have some problems with the new X# runtime dlls on certain computers running as a 32bit program with the VO dialect.

It seems that it is related to the Operating system, because it happens only on our Windows 2019 Server machines, not on Windows 10 and not on Windows 2016 Server. The servers are virtual machines running under VMWare with Intel processors, but I don't believe that it is this the reason because the Windows 2016 Server is also a virtual machine running on the same host. I don't believe that it is Dotnet framework depending.

I can reproduce the problem with a simple console program. The exception happens immediately at the first occurence of String2Psz.
function testpszstring()
LOCAL s AS psz
local c as string
Console.WriteLine("start testpszstring")
s := String2Psz("COMCTL32.DLL")
c := psz2string(s)
Console.WriteLine("after psz2string"+c)

Can anybody confirm this error or has a suggestion what it can be?

Thanks
Arne
runtimeexception.png
runtimeexception.png (158.21 KiB) Viewed 312 times

2.8 Exception with String2Psz on Windows 2019 Servers

Posted: Mon May 03, 2021 12:08 pm
by robert
Arne,
I was able to reproduce this on a virtual 2019 server in my office too.
I'll try to find out what the problem is and will report back to you.

Robert

2.8 Exception with String2Psz on Windows 2019 Servers

Posted: Mon May 03, 2021 1:57 pm
by robert
Arne,

Check your mail.

Robert

2.8 Exception with String2Psz on Windows 2019 Servers

Posted: Mon May 03, 2021 3:37 pm
by ArneOrtlinghaus
Thank you. The Program starts correctly with the modified Runtime Dll. I will continue with my tests.