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

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

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

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

commented: ) +0

Valgrind is also good.

Valgrind is also good.

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

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

>
Is it work for windows 8?

I think that only Bill Geits know it ;)

I think that only Bill Geits know it ;)

... or Steve Ballmer ...

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

You are wrong. Orbit30 knows it :)

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

+5
Anon rules

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

commented: Do not post useless things. +0
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.