Hi,

>   I have some trouble with this class qpid::client::Message
> 
> Here is my code:
> void main()
> {     
>       while(1)
>       {
>               getchar();              
>               qpid::client::Message * pMsg =  new 
> qpid::client::Message("123456") ;
>               delete pMsg;
> 
>                            //qpid::client::Message 
> msg("123456") ; // same problem to...
>       }
> }
> 
> Program is fine with Linux in release mode, Windows in debug 
> mode, but problem occurs in Windows Release mode. I used 
> amqp_0_10. When I run the program, 
> - before the first keypressed 4368k mem is used
> - after first keypressed: 4464k mem is used !!!
> - after first keypressed: 4464k mem is used 
> - after 11th keypressed: 4468k mem is used...
> 
> Don't known what's wrong... Maybe some one can help me?

Why do you think something is wrong? Where did the memory stats come
from? Before digging too much further into this, I recommend you run
your code under a leak checker such as Purify or BoundsChecker. It may
simply be that the run-time library allocated big chunks of memory for
its own use and isn't releasing it all at once.

-Steve

--
Steve Huston, Riverace Corporation
Total Lifecycle Support for Your Networked Applications
http://www.riverace.com


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscr...@qpid.apache.org

Reply via email to