2.8 Exception with String2Psz on Windows 2019 Servers

This forum is meant for questions and discussions about the X# language and tools
Post Reply
User avatar
ArneOrtlinghaus
Posts: 412
Joined: Tue Nov 10, 2015 7:48 am
Location: Italy

2.8 Exception with String2Psz on Windows 2019 Servers

Post 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 311 times
User avatar
robert
Posts: 4474
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

2.8 Exception with String2Psz on Windows 2019 Servers

Post 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
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
robert
Posts: 4474
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

2.8 Exception with String2Psz on Windows 2019 Servers

Post by robert »

Arne,

Check your mail.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
ArneOrtlinghaus
Posts: 412
Joined: Tue Nov 10, 2015 7:48 am
Location: Italy

2.8 Exception with String2Psz on Windows 2019 Servers

Post by ArneOrtlinghaus »

Thank you. The Program starts correctly with the modified Runtime Dll. I will continue with my tests.
Post Reply