Message-ID: <7470.62.39.72.60.1203063044.squirrel@domain.hid> Date: Fri, 15 Feb 2008 09:10:44 +0100 (CET) From: "Fabien MAHOT" MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: [Xenomai-help] Problem of thread creation with Xenomai Posix 2 List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org OK, thank you. I wrote a new program in which there is no call to my function Console. There is just calls to printf at the end of the program. Thus, we can be sure that the problem comes from the pthread_create call. New program : #include #include #include #include #include #include #define NB_ELEMENTS 50 int j; char Text [NB_ELEMENTS]; int func(volatile int* i) { return (*i)++; } void AddConsole (char val) { Text[j] =3D val; j++; } void ReadTabConsole (void) { int i; int NbConsole =3D j; for (i=3D0; i