We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,610 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Memory leak in my application

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;
}
5
Contributors
11
Replies
3 Months
Discussion Span
1 Year Ago
Last Updated
13
Views
MastAvalons
Light Poster
32 posts since Jan 2012
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 0

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

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

L7Sqr
Practically a Posting Shark
866 posts since Feb 2011
Reputation Points: 253
Solved Threads: 155
Skill Endorsements: 7

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

MastAvalons
Light Poster
32 posts since Jan 2012
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 0

Valgrind is also good.

jbennet
Moderator
Team Colleague
18,528 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 609
Skill Endorsements: 29

Valgrind is also good.

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

MastAvalons
Light Poster
32 posts since Jan 2012
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 0

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

>
Is it work for windows 8?

Topiary
Newbie Poster
12 posts since Mar 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

I think - yes :)

MastAvalons
Light Poster
32 posts since Jan 2012
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 0

I think that only Bill Geits know it ;)

StarDrago
Newbie Poster
2 posts since May 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

I think that only Bill Geits know it ;)

... or Steve Ballmer ...

StarDrago
Newbie Poster
2 posts since May 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

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

You are wrong. Orbit30 knows it :)

Topiary
Newbie Poster
12 posts since Mar 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

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

+5
Anon rules

MastAvalons
Light Poster
32 posts since Jan 2012
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 0

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

Topiary
Newbie Poster
12 posts since Mar 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page generated in 0.0861 seconds using 2.71MB