#ROGEN problem in Delphi XE (but not with XE10.4)

Hello Remobjects team,

I’m currently using Remobjects remoting version 10.0.0.1481 with Delphi XE and XE10.4 Sydney.

I find that I’m unable to build a certain project using Delphi XE, because the ROGEN line
"{#ROGEN:mylibrary.rodl} // RemObjects: Careful, do not remove!" in the project file triggers an error message.

The error message is “CDATA section couldn’t contain ‘]]’ at 120/320”. This error only happens if a method or service in the rodl has documentation. If I remove the documentation, the error disappears. And on my computer the error only occurs with Delphi XE, not with 10.4.

Hi,

can you create a simple .RODL that reproduces this issue, pls?
you can attach it here or drop email to support@ for keeping privacy.

Here’s an example!
fileserviceLibrary.rodl (11.8 KB)

Thanks, logged as bugs://84600

Hi,

pls update uROUnicodeSupport.pas as

function String_Create(const aValue: TCharArray): String;
begin
{$IFDEF StringHelperPresent}
  Result := String.Create(aValue);
{$ELSE}
  SetString(Result,PChar(@aValue[0]),Length(aValue));  //changed
{$ENDIF}
end;

function String_Create(const aValue: TCharArray; aStartIndex: Integer; aLength: Integer): string;
begin
{$IFDEF StringHelperPresent}
  Result := String.Create(aValue, aStartIndex, aLength);
{$ELSE}
  SetString(Result, PChar(@aValue[aStartIndex]),aLength);  //changed
{$ENDIF}
end;

after this close RAD studio and launch C:\Program Files (x86)\RemObjects Software\Build\install_DA.cmd (or install_RO.cmd).

after rebuilding packages, this issue will be fixed

bugs://84600 got closed with status fixed.

Thank you for looking into this and for creating the bugfix, it works fine! You saved me a lot of headaches!

Regards,
Arthur