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