What steps will reproduce the problem?
1. Trying to assign a record to TOmniValue using the TOmniValue.CastFrom<T>
method.
What is the expected output? What do you see instead?
An exception to why it was failing. An exception saying that %d is not a valid
format.
What version of the product are you using? On what operating system?
OTL 3.0.3, Win 7.
Please provide any additional information below.
https://code.google.com/p/omnithreadlibrary/source/browse/trunk/OtlCommon.pas#22
75
On line 2275/2276 in OtlCommon.pas, there is the following code:
raise Exception.CreateFmt('TValue of type %d cannot be converted to TOmniValue',
[GetEnumName(TypeInfo(TTypeKind), Ord(value.Kind))]);
This should be:
raise Exception.CreateFmt('TValue of type %s cannot be converted to TOmniValue',
[GetEnumName(TypeInfo(TTypeKind), Ord(value.Kind))]);
The "%d" should be "%s"
Original issue reported on code.google.com by ring....@gmail.com on 17 Oct 2013 at 7:53
Original issue reported on code.google.com by
ring....@gmail.com
on 17 Oct 2013 at 7:53