From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17706 invoked by alias); 15 May 2006 02:18:42 -0000 Received: (qmail 17696 invoked by uid 22791); 15 May 2006 02:18:41 -0000 X-Spam-Check-By: sourceware.org Received: from grunt9.ihug.co.nz (HELO grunt9.ihug.co.nz) (203.109.254.51) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 15 May 2006 02:18:39 +0000 Received: from 203-173-152-185.bliink.ihug.co.nz ([192.168.2.20]) [203.173.152.185] by grunt9.ihug.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1FfSfL-0000xM-00; Mon, 15 May 2006 14:18:35 +1200 Message-ID: <4467E4C5.8080506@ecosm.com> Date: Mon, 15 May 2006 02:18:00 -0000 From: Will Bryant User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: pthreads-win32@sources.redhat.com Subject: Re: Struggling with a loop Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact pthreads-win32-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sourceware.org X-SW-Source: 2006/txt/msg00018.txt.bz2 Mats Aubell wrote: > I tried to pass it like this: > > pthread_create(&thread, NULL, RunApplication, (void*)top) > > with the following method: > > void * RunApplication(void * arg) > { > SR *top = SR*(arg); > StartRecogniser(); > do { > top->Ask(); > top->Reset(); > } while(1); > return 0; > } > > but the create thread method didn't approve of it. > > Can you give us a bit more to go on here - what error does it produce? -- Will Bryant