[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: abnormal thread termination
From: |
David Chisnall |
Subject: |
Re: abnormal thread termination |
Date: |
Mon, 13 Jul 2015 09:57:16 +0100 |
On 10 Jul 2015, at 20:18, Riccardo Mottola <address@hidden> wrote:
>
> Hi,
>
> I detach a thread "normally" with:
>
> [updateButton setEnabled:NO];
> [NSThread detachNewThreadSelector:@selector(updateData:) toTarget:self
> withObject:nil];
>
> It executes everything as expected, but I continuously get:
> WARNING thread 0x2c63c1a8 terminated without calling +exit!
>
> I have done something similar with other threads and I don't get this error.
> What could be happening? Some sort of premature exit? It executes up to the
> last statement.
This message also appears for threads that are not created with NSThread, which
is quite annoying. I use some of the C++11 threading support for some worker
threads and I get a message when they exit.
David