Re: Window Controller not being released.
Re: Window Controller not being released.
- Subject: Re: Window Controller not being released.
- From: John Nairn <email@hidden>
- Date: Mon, 28 Oct 2002 13:49:38 -0700
I had the same problem and was able to solve it. The problem was caused
because I was multithreaded and using distributed objects. I downloaded
the "SimpleThreads" example from Apple and it too failed to release
objects including window controllers. It had comments that it did not
clean up after itself. I was able to fix SimpleThreads and then the
same method worked in my application too.
In Brief: I eventually guessed that the problem is that there are two
NSConnections - one in the client and one in the server. The
killThreads code invalidates the client's connection but not the one
in the server. The solution was to add code to the server to
invalidate its connection when you want to kill the thread.
All the details on in this group's archives. I think you can get to the
topic with
http://cocoa.mamasam.com/COCOADEV/2002/08/2/43120.php
If not, go to archives (
http://www.mse.utah.edu/~nairn/) and search for
"Fixing SimpleThreads".
I have a complete revised source code to SimpleThreads if you would
like it. I sent it to Apple and they said they would have look but I do
not know if they have updated yet.
------------
John Nairn (1-801-581-3413, FAX: 1-801-581-4816)
Web page:
http://www.mse.utah.edu/~nairn
_______________________________________________
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.