Re: I'm leaking memory
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