On Aug 9, 2008, at 5:24 PM, Dennis Harms wrote:
I've created a class with some member variables of type NSString*.
In the
init function of the class, I write something into those strings.
Now I call
a function of the initialized class instance as a new thread and
try to read
from those memb
This isn't really a multithreading issue, it is a memory management
issue. the string you have created is autoreleased, you must retain
it if you want it to remain in memory. See:
http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/
MemoryMgmt.html
On Aug 9, 2008, at 8:24
8/9/08 6:24 PM, also sprach [EMAIL PROTECTED]:
> baseURL = [NSString stringWithString: _url];
Are you aware that the string in this case is autoreleased, and what that
implies? If not, search for "memory management" and you are sure to find the
memory management guidelines/rules for Cocoa.
B
I'm new to Cocoa and objective C development and I've got a big problem with
multithreading:
I've created a class with some member variables of type NSString*. In the
init function of the class, I write something into those strings. Now I call
a function of the initialized class instance as a new