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.