You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to create a TStringStream with Delphi 2009 or newer the initial value in the constructor is not taken into account, because TStringStream has multiple constructors and the pointer points to the wrong overload.
The console app below, which is based on the samples, does demonstrate this.
The expected output is:
6
The actual output is with D2009 and higher:
0
I have a fix with a helper function in mind and plan to provide a pull request in the next few days.
Added a wrapper for TStringStream.Create(const AString: string) because Unicode Delphi has multiple constructors and the pointer points to the wrong overload
* Fix for #180 (#180)
- enables VarArrayGet/-Set for Delphi 6 or higher
- since D5 VarArrayGet seems not to be accessible the best solution is to negate $IFNDEF DELPHI6UP into $IFDEF DELPHI6UP
* Fix for #73 (#73)
Added an InputQuery wrapper because Delphi XE2 and higher have two additional versions of InputQuery, the pointer points to the wrong version and the execution fails with "Length of value array must be >= length of prompt array"
* Fix for #183 (#183)
Added a wrapper for TStringStream.Create(const AString: string) because Unicode Delphi has multiple constructors and the pointer points to the wrong overload
When trying to create a TStringStream with Delphi 2009 or newer the initial value in the constructor is not taken into account, because TStringStream has multiple constructors and the pointer points to the wrong overload.
The console app below, which is based on the samples, does demonstrate this.
The expected output is:
The actual output is with D2009 and higher:
I have a fix with a helper function in mind and plan to provide a pull request in the next few days.
The text was updated successfully, but these errors were encountered: