[68982 Closed] "Out of memory" exception raised in TROIndyTCPServer

“Out of memory” exception raised in TROIndyTCPServer in case access from WebBrowser.

Steps to reproduce:

  1. Run MegaDemoServer under Delphi IDE
  2. Activate Indy TCP Server
  3. In WebBrowser go to localhost:8090
  4. Exception “Out of memory” raised in server

pls specify what version of delphi and ROD you are using.

I’ve got only

---------------------------
Debugger Exception Notification
---------------------------
Project MegaDemoServer.exe raised exception class EIdSocketError with message 'Socket Error # 10054
Connection reset by peer.'.
---------------------------
Break   Continue   Help   
---------------------------

Delphi XE5 update 2 + RemObjects SDK 8.0.83.1137.

This is a call stack:
:74d31d4d KERNELBASE.RaiseException + 0x48
System.Classes.TMemoryStream.Realloc(4975750)
:004bec86 TMemoryStream.Realloc + $4E
System.Classes.TMemoryStream.Realloc(???)
System.Classes.TMemoryStream.SetCapacity(80739860)
System.Classes.TMemoryStream.SetSize(???)
System.Classes.TStream.SetSize(1195725856)
System.Classes.TStream.SetSize64(1195725856)
IdIOHandler.AdjustStreamSize($8F5E60,1195725856)
IdIOHandler.TIdIOHandler.ReadStream($8F5E60,-1,False)
uROIndyTCPServer.TROCustomIndyTCPServer.InternalOnExecute($92CB10)
IdCustomTCPServer.TIdCustomTCPServer.DoExecute($92CB10)
IdContext.TIdContext.Run
IdTask.TIdTask.DoRun
IdThread.TIdThreadWithTask.Run
IdThread.TIdThread.Execute
System.Classes.ThreadProc($8A2990)
System.ThreadWrapper($9018D0)
:7521919f KERNEL32.BaseThreadInitThunk + 0xe
:771da22b ntdll.RtlInitializeExceptionChain + 0x84
:771da201 ntdll.RtlInitializeExceptionChain + 0x5a

Thanks, logged as bugs://68982: “Out of memory” exception raised in TROIndyTCPServer

I still think, that it is a bug in Indy because indy thinks that buffer with data is present and buffer has size = random integer …

bugs://68982 got closed as fixed for release DA8.2