Click here to Skip to main content
15,919,341 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CTRL Pin
Christian Graus30-May-01 23:16
protectorChristian Graus30-May-01 23:16 
GeneralGrid Control in CFormView Pin
markkuk30-May-01 21:14
markkuk30-May-01 21:14 
GeneralRe: Grid Control in CFormView Pin
31-May-01 19:18
suss31-May-01 19:18 
GeneralRe: MFC Grid Control in CFormView Pin
markkuk31-May-01 20:27
markkuk31-May-01 20:27 
GeneralRe: MFC Grid Control in CFormView Pin
Tomasz Sowinski1-Jun-01 0:37
Tomasz Sowinski1-Jun-01 0:37 
GeneralRe: MFC Grid Control in CFormView Pin
markkuk1-Jun-01 2:07
markkuk1-Jun-01 2:07 
GeneralRe: Grid Control in CFormView Pin
5-Jun-01 22:19
suss5-Jun-01 22:19 
GeneralMSComm produces memory leak Pin
D.D. de Kerf30-May-01 20:40
D.D. de Kerf30-May-01 20:40 
Hi y'all!

I've got myself into a nasty situation again. I had to create a client and server application which would be put on different PC's and communicate using simple modems (analogue and ISDN).

Not having a good component for serial communication and having to build a protocol of our own on top of it, I used the MSComm ActiveX object in Visual C++ 6 (with Win2K SDK) for talking with the modems on the COM ports.

But when we started stress testing it, it turned out that the client suffered from a rather huge memory leak, and it wasn't in my code! (I'm sure of this, because a debug build doesn't dump any memory and the only thing that keeps on rising is the number of used CRT-blocks). The weird thing is that the server application uses the MSComm object almost in the same way and doesn't have this leak at all.

When continually connecting and talking to each other the client application rises about 20 Kb each minute, so within an hour or 8 the Client PC will be swapping like crazy.

The ONLY difference between the two programs is that the server application is the dialing party and the client application is the waiting party. Confused | :confused: Confused | :confused: Confused | :confused: Confused | :confused:

Anyone ever had the same problem??? I think there must be some difference in the order of function calls. Could this really be of any difference???

Structured programming vs. chaotic mind boggling
GeneralRe: MSComm produces memory leak Pin
31-May-01 8:02
suss31-May-01 8:02 
GeneralRe: MSComm produces memory leak Pin
D.D. de Kerf31-May-01 21:26
D.D. de Kerf31-May-01 21:26 
GeneralRe: MSComm produces memory leak (the solution!) Pin
D.D. de Kerf6-Jun-01 20:56
D.D. de Kerf6-Jun-01 20:56 
GeneralDestructor not being called Pin
Miroslav Rajcic30-May-01 20:08
Miroslav Rajcic30-May-01 20:08 
GeneralRe: Destructor not being called Pin
30-May-01 20:16
suss30-May-01 20:16 
GeneralRe: Destructor not being called Pin
Miroslav Rajcic30-May-01 20:35
Miroslav Rajcic30-May-01 20:35 
GeneralRe: Destructor not being called Pin
Christian Graus30-May-01 20:41
protectorChristian Graus30-May-01 20:41 
GeneralThanks Pin
Miroslav Rajcic30-May-01 20:42
Miroslav Rajcic30-May-01 20:42 
QuestionW2K/multi-CPU overlapped sockets bug? Pin
Taka Muraoka30-May-01 19:45
Taka Muraoka30-May-01 19:45 
QuestionDocking Bar inside a DLL? Pin
Steve The Plant30-May-01 19:12
Steve The Plant30-May-01 19:12 
AnswerRe: Docking Bar inside a DLL? Pin
Tomasz Sowinski31-May-01 0:09
Tomasz Sowinski31-May-01 0:09 
GeneralNegative values in resource.h Pin
Nick Blumhardt30-May-01 14:55
Nick Blumhardt30-May-01 14:55 
GeneralRe: Negative values in resource.h Pin
Christian Graus30-May-01 15:15
protectorChristian Graus30-May-01 15:15 
GeneralCreating Remote Desktop Sharing Software Pin
30-May-01 14:23
suss30-May-01 14:23 
GeneralFrustration with BSTR* Pin
30-May-01 13:47
suss30-May-01 13:47 
GeneralRe: Frustration with BSTR* Pin
Christian Graus30-May-01 13:53
protectorChristian Graus30-May-01 13:53 
GeneralRe: Frustration with BSTR* Pin
30-May-01 14:00
suss30-May-01 14:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.