1.11M Members

Memory leak in my application

 
1
 

I think there are memory leak in my application, perhaps the problem is in a part of code

status = myPubSubSubscribe.Receive(fsReceivedTopic, myBufferSubscribe, myHeader, 0);
if (status == PS_ENGINE_UNAVAIL)
{
  printf("Unable to connect to the pubsub engine: %s\n", PSPubSub::Status2String(status));
  myBufferPublish.FreeBuffer();
  myBufferPublish.~PSBuffer();
  myPubSubPublish.~PSPubSub();
  myBufferSubscribe.~PSBuffer();
  myPubSubSubscribe.~PSPubSub();
  return;
}
 
1
 

There is not enough context in that snippet to even wager a guess.

As an aside, I see emoticons. Please use code tags.

 
1
 

thanks :) my problem is solved. I used deleaker for debugging. :icon_idea:

 
2
 

Valgrind is also good.

 
1
 

Valgrind is also good.

valgrind - powerful tool but it only for linux :sad: I hate to use wine :@

 
1
 

thanks :) my problem is solved. I used deleaker for debugging. :icon_idea:

>
Is it work for windows 8?

 
1
 

I think - yes :)

 
2
 

I think that only Bill Geits know it ;)

 
2
 

I think that only Bill Geits know it ;)

... or Steve Ballmer ...

 
1
 

I think that only Bill Geits know it ;)
... or Steve Ballmer ...

You are wrong. Orbit30 knows it :)

 
1
 

I think that only Bill Geits know it ;)
... or Steve Ballmer ...
You are wrong. Orbit30 knows it :)

+5
Anon rules

 
0
 

We are Legion. We do not forgive. We do not forget. Expect us....

You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: