This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

ASSERT FAIL


I get the following error and then my program hangs.  What does the <1>
mean, and what does the [170] mean?  I didn't see information on these
numbers in the documentation.  Also, my threads work just fine without
tracing and assertions enabled.

ASSERT FAIL: <1>[170]void cyg_thread_create() Bad handle pointer


cyg_thread_entry_t WatchSlot;
cyg_thread_entry_t Start;

void cyg_user_start(void)
{

	cyg_mutex_init(&cliblock);

	cyg_thread_create(4, WatchSlot, (cyg_addrword_t) 0,
		"Slot Watch", (void *) stack[0], 4096,
		&slotWatch, &thread_s[0]);
	cyg_thread_create(4, Start, (cyg_addrword_t) 0,
		"Start", (void *) stack[1], 4096,
		&start, &thread_s[1]);
	
	printf ("Starting Threads!\n");
	cyg_thread_resume(start);
	cyg_thread_resume(slotWatch);
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]