From mboxrd@z Thu Jan 1 00:00:00 1970 From: jens.ohlund@secrc.abb.se To: ecos-discuss@sourceware.cygnus.com Subject: [ECOS] Threads and Handles Date: Tue, 04 Jul 2000 08:21:00 -0000 Message-id: X-SW-Source: 2000-07/msg00024.html Hi ! I have declared a cyg_handle_t, a cyg_thread and a stack as static. This thread I start and delete every now and then. In betwen, do I have to do something with the handle ? Or the memory as well (I'm using the same stack the next time I create the thread). I mean, the cyg_thread_create sets the cyg_handle_t, but what does it do with the handle if the handle already have some old values ? My problem is that after a certain time of create and delete this thread i get a SIGTRAP. And i can't understand why, because I'm very careful to check that the thread have left OR is in last line of code in the thread method before I delete it. Just to be sure that resources get back, and by resources I mean memory. yours Jens Ohlund