API Support Forum
OEC API > API Support > COM Memory Exceptions
Author Topic: COM Memory Exceptions
(1 messages, Page 1 of 1)
Moderators: VPfau
RWare2020
Posts: 206
Joined: Feb 11, 2020


Posted: Aug 23, 2024 @ 05:34 PM             Msg. 1 of 1
I have been having some issues regarding some memory errors in the COM api and I am trying to narrow it down. As of right now, I have only been able to duplicate this in sim and not prod. This seems to have started roughly 2 - 3 weeks ago. We initially tested this on a Nasdaq Mini minute or range chart and the data feed just stops coming in if we let it just sit there. When doing some memory diagnostics, and some walkthroughs in my code here are some issues I'm having.

1.
When taking a crash dump and analyzing it while it is unresponsive, I analyze it with VS2022 and I am getting event handler leaks with many of them coming from here: GF.ProtoSharp.Serialization.Context.TagFieldReaders+c__DisplayClass6_0 4.77 KB 0x08F1662C

2.
When detaching the client using this code:
IDispEventSimpleImpl_IServerConnectionApiEvents::DispEventUnadvise(server->Connection->Aggregate);
IDispEventSimpleImpl_ISessionsApiEvents::DispEventUnadvise(server->Connection->Sessions);

I'm getting these errors:
Exception thrown at 0x767FA942 in Program.exe: Microsoft C++ exception: HRException at memory location 0x0093DDC8.
Exception thrown at 0x767FA942 in Program.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
Exception thrown at 0x767FA942 in Program.exe: Microsoft C++ exception: HRException at memory location 0x0093DDC8.
Exception thrown at 0x767FA942 in Program.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.

3.
I am also getting an error when disconnecting from the API that I don't remember getting typically:
Exception thrown at 0x767FA942 (KernelBase.dll) in Program.exe: 0x80010012: The callee (server [not server application]) is not available and disappeared; all connections are invalid. The call did not execute.

4.
I am also getting this error that I don't recall getting before:
WinRT originate error - 0x800401FB : 'Detected premature stub rundown for call on IID:{00000131-0000-0000-C000-000000000046}, method:4, IPID:{0000A809-55D0-7834-DAEB-3110DB238BF3}, type of rundown:1!'.
It seems to immediately after getting this error, I'm disconnected from the API.