Exception: Resource RODLFILE not found

Hello,

I’m upgrading from Delphi Berlin 10.1 with RO SDK 9.5.111.1397 to Delphi 11 with RO SDK 10.0.0.1549.

When I start the application I get an exception: Exception : Resource RODLFILE not found

I can skip procedure TROServer.RebuildServices, but this can’t be the sollution.

The exception is thrown in uRODLSupport.pas:
function ReadRODLResource(AnInstance: THandle): TCustomMemoryStream;
begin

  • Result := TResourceStream.Create(AnInstance, res_RODLFile, RT_RCDATA);*
    end;

But when I use ResourceTuner to inspect the generated exe, I can see RODLFILE in RC Data.

Can you help me to solve this?

1 Like

Hi,

I can’t reproduce this issue with simple testcase created by ROD wizard.

Can you create a simple testcase that reproduce this issue, pls?
You can drop email to support@ for keeping privacy

Logged as bugs://D19298.

bugs://D19298 was closed as fixed.

Hi,

I have tried to create a simple testcase and I’m also unable to reproduce the issue there.

So I have changed uRODLSupport.ReadRODLResource where the exceptions is thrown to:
function ReadRODLResource(AnInstance: THandle): TCustomMemoryStream;
begin
*** var iRes := FindResource(HInstance, res_RODLFile, RT_RCDATA);***
*** try***
*** var resourceStream := TResourceStream.Create(HInstance, res_RODLFile, RT_RCDATA);***

*** var stringStream := TStringStream.Create();***
*** stringStream.CopyFrom(resourceStream);***
*** finally***
*** end;***

  • Result := TResourceStream.Create(AnInstance, res_RODLFile, RT_RCDATA);*
    end;

I also added the additional code to the procedure where the ROIndyHTTPServer is activated.
Reading the resource just before activating works, but in ReadRODLResource it crashes.

I attached two callstacks, one from my application (Callstack with Exeption.txt) and one from the example (callstack without exception.txt).

Callstack with Exception.txt (1.1 KB)
Callstack without Exception.txt (900 Bytes)

I hope you can give me a hint where to look.

Thanks.

Hi,

Thx.
Drop email to support@ , I’ve send to you updated files that fixed this issue

I have send an email. Sender is a.konijnendijk@bcs.nl

check PM

Your fix seems to be working.
I can know start my server.

1 Like

How do we get the fix for this?

Check PM

Thanks Evgeny, that worked.

Hello,

I have just updated to the latest version, 1553, and I’m getting this same exception. I have been using a “custom” RODL reader… not really sure why, I think it was because my apps use runtime packages, several of them, are C++Builder based… not really sure why in this moment to be honest.

But, the app produces the error before even reaching the DoReadRODLResource in my custom reader.

The only thing that changed was the version, I was on version 1541.

Thanks for your help.

Hi,

this issue was fixed after .1553 had been released.


Check PM

.1555 was released with this fix

1 Like