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);***
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).
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.