• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: I'm leaking memory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I'm leaking memory


  • Subject: Re: I'm leaking memory
  • From: "Brian O'Brien" <email@hidden>
  • Date: Fri, 11 Feb 2005 13:55:24 -0700

Ok.. I get it... I should have used pointers in the class declaration...
so
std::string *myAET;

then later in my 'initialization' method i say
myAET = new std::string();

So should my class have declared a constructor and destructor?
What's the ObjectiveC style on this?


On Feb 11, 2005, at 1:32 PM, Brian O'Brien wrote:

I think I finally found the 'problem'(s)

As well as not having set the pool up....

in my class i have:


@interface dicomSCP : NSObject {


std::string myAET;
std::list<std::string> acceptAETs;
int portno;

}

In my methods any time I try to set these member variables an exception is raised...
I'm sorry I'm new to Cocoa and ObjectiveC but it seems to me that somehow these member variables
are not initialized....

yet in my code i did do

dicomSCP * server = [[dicomSCP alloc] init];

Was I supposed to have initialized these some how?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >I'm leaking memory (From: "Brian O'Brien" <email@hidden>)
 >Re: I'm leaking memory (From: "Brian O'Brien" <email@hidden>)
 >Re: I'm leaking memory (From: John Stiles <email@hidden>)
 >Re: I'm leaking memory (From: "Brian O'Brien" <email@hidden>)
 >Re: I'm leaking memory (From: Ricky Sharp <email@hidden>)
 >Re: I'm leaking memory (From: "Brian O'Brien" <email@hidden>)

  • Prev by Date: MVC problem
  • Next by Date: Re: I'm leaking memory
  • Previous by thread: Re: I'm leaking memory
  • Next by thread: Re: I'm leaking memory
  • Index(es):
    • Date
    • Thread