Objects between threads
Objects between threads
- Subject: Objects between threads
- From: Chris Ross <email@hidden>
- Date: Sat, 7 Sep 2002 15:47:31 +0100
I have a problem. I have a class that can connect to a data source.
I wish to loop around and go through an array of the data source
objects checking to see if there is any data, and if so process it.
If I create an object and add it to an array from an outside thread,
then the program segfaults when I try and access the object, and
it's methods. If I create the object within the thread and add it to
the same array, everything works fine. The array is created out
side the threads execution pool.
Any ideas on how to get this to work ? I am using a thread so that
data processing can occur outside the main application loop.
I guess that it has something to do with memory pools but I dont
know, I am too new at this,
Regards,
Chris
--
Chris Ross - email@hidden -
http://www.darkrock.co.uk
Ferite Programming Language -
http://www.ferite.org
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.