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;
}

Edited by mike_2000_17: code format

5
Contributors
11
Replies
13
Views
5 Years
Discussion Span
Last Post by Topiary
Featured Replies
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

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?

2

I think that only Bill Geits know it ;)

... or Steve Ballmer ...

Edited by StarDrago

1

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

You are wrong. Orbit30 knows it :)

Edited by Topiary

1

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

+5
Anon rules

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.