1,105,636 Community Members

Memory leak in my application

Member Avatar
MastAvalons
Light Poster
32 posts since Jan 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
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;
}
Member Avatar
L7Sqr
Veteran Poster
1,006 posts since Feb 2011
Reputation Points: 179 [?]
Q&As Helped to Solve: 168 [?]
Skill Endorsements: 11 [?]
 
1
 

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

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

Member Avatar
MastAvalons
Light Poster
32 posts since Jan 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
1
 

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

Member Avatar
jbennet
Moderator
17,127 posts since Apr 2005
Reputation Points: 1,618 [?]
Q&As Helped to Solve: 736 [?]
Skill Endorsements: 38 [?]
Team Colleague
Featured
 
2
 

Valgrind is also good.

Member Avatar
MastAvalons
Light Poster
32 posts since Jan 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
1
 

Valgrind is also good.

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

Member Avatar
Topiary
Newbie Poster
12 posts since Mar 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
1
 

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

>
Is it work for windows 8?

Member Avatar
MastAvalons
Light Poster
32 posts since Jan 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
1
 

I think - yes :)

StarDrago
Newbie Poster
2 posts since May 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
Unverified Member
 
2
 

I think that only Bill Geits know it ;)

StarDrago
Newbie Poster
2 posts since May 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
Unverified Member
 
2
 

I think that only Bill Geits know it ;)

... or Steve Ballmer ...

Member Avatar
Topiary
Newbie Poster
12 posts since Mar 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
1
 

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

You are wrong. Orbit30 knows it :)

Member Avatar
MastAvalons
Light Poster
32 posts since Jan 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
1
 

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

+5
Anon rules

Member Avatar
Topiary
Newbie Poster
12 posts since Mar 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

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

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