Nullreferenceexception in Unformat with X# 2.6

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

Nullreferenceexception in Unformat with X# 2.6

Post by ArneOrtlinghaus »

The following code generates an exception within the function Val
unformat("", "@Z 99", "N")

System.NullReferenceException
HResult=0x80004003
Message=Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
Source=XSharp.RT
StackTrace:
at XSharp.RT.Functions.Val(String cNumber)
at XSharp.RT.TransformHelpers.UnformatN(String cValue, String cSayPicture, Boolean lNullable)
at XSharp.RT.Functions.Unformat(String cFormatString, String cSayPicture, String cType)
at ConsoleTests.Exe.Functions.Testvalempty(__Usual[] Xs$Args) in C:projectsxsharpBaseLibsrcConsoleTestsProgram.prg:line 7
User avatar
Chris
Posts: 4906
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Nullreferenceexception in Unformat with X# 2.6

Post by Chris »

Hi Arne,

Thanks, confirmed and fixed, will send you an update in a moment!
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
ArneOrtlinghaus
Posts: 412
Joined: Tue Nov 10, 2015 7:48 am
Location: Italy

Nullreferenceexception in Unformat with X# 2.6

Post by ArneOrtlinghaus »

Thanks a lot.
It is not so urgent. As Robert is also working for me ("I feel important"), probably you can make a general update still this week.
User avatar
Chris
Posts: 4906
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Nullreferenceexception in Unformat with X# 2.6

Post by Chris »

Hi Arne,

OK, I think we will indeed need to shortly release a hotfix anyway with several small fixes, so will just include it in it.
Btw, when it is possible (not too complicated), we always try to provide quick fixes to customers directly, because we realize you guys need them to continue with your work. Everybody is very important :)
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
Post Reply