divyang4481 / rcf-cpp

Automatically exported from code.google.com/p/rcf-cpp
0 stars 0 forks source link

Heap Error #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am using the RCF connection for Flash Media Server Backend to pass 
values between two different programs. I get an exception in one of the 
RCF files due to which the program ends. This error is random and usually 
happens when there are many connections simultaneously.

I get the following error in my performance test:

______________________________
The thread 'Win32 Thread' (0x1e6c) has exited with code 0 (0x0).
d:\software\fms 3.0.4 plugins\edge_auth\sample\rcf\tcpclienttransport.cpp
(275): void __thiscall RCF::TcpClientTransport::bsdRecv(const class 
RCF::ByteBuffer &,unsigned int): : Thread-id=2908 : Timestamp(ms)
=14608241: THROW : class RCF::Exception : [30: client read timed out][0: 
No sub system][0: ][What: ][Context: ]: bytesToRead=4, 
First-chance exception at 0x77e4bef7 in FMSCore.exe: Microsoft C++ 
exception: RCF::Exception at memory location 0x07818e98..
'FMSCore.exe': Loaded 'C:\WINDOWS\system32\shell32.dll', No symbols loaded.
First-chance exception at 0x77e4bef7 in FMSCore.exe: Microsoft C++ 
exception: TCBlockedByAdaptor at memory location 0x0781fb90..
The thread 'Win32 Thread' (0x23bc) has exited with code 0 (0x0).
HEAP[FMSCore.exe]: Heap missing last entry in committed range near 08D77C98
Windows has triggered a breakpoint in FMSCore.exe.

This may be due to a corruption of the heap, and indicates a bug in 
FMSCore.exe or any of the DLLs it has loaded.
__________________________________________________________

Original issue reported on code.google.com by Arpitgan...@gmail.com on 4 Aug 2009 at 2:05

GoogleCodeExporter commented 9 years ago

First of all, I would check that you are not accidentally sharing RcfClient<> 
object 
across threads. If you do have an RcfClient<> that is used by several threads, 
you'll need a mutex to make sure only one thread is using it at a time.

If you're sure your code is correct, then probably the easiest way to deal with 
this 
is to send me a program (as short as possible) that exhibits the problem.

Also, it would be useful to know which version of RCF, which version of Visual 
C++, 
which RCF_USE_*** macros are defined, and whether you are using any transport 
filters.

Original comment by jarl.lin...@gmail.com on 6 Aug 2009 at 6:40

GoogleCodeExporter commented 9 years ago
Hi Jarl,
        I think the issue is fixed in the new version. We were using RCD 0.9 version 
and I have upgraded to RCF 1.1 and do not see this error. I tried to do a 
performance 
test with more than 1200 clients connecting simultaneously and it was fine. The 
test 
was run a numerous times.

Thanks for your help.

Regards,
Arpit

Original comment by Arpitgan...@gmail.com on 6 Aug 2009 at 12:18

GoogleCodeExporter commented 9 years ago
Also do I have to close the defect? I do not see the option to do so.

-Arpit

Original comment by Arpitgan...@gmail.com on 6 Aug 2009 at 12:19

GoogleCodeExporter commented 9 years ago
That's alright, I can close it.

Regards,
Jarl.

Original comment by jarl.lin...@gmail.com on 6 Aug 2009 at 12:28