This is the mail archive of the
pthreads-win32@sources.redhat.com
mailing list for the pthreas-win32 project.
RE: Posix
- To: <pthreads-win32 at sourceware dot cygnus dot com>
- Subject: RE: Posix
- From: "Alexey Sushkov" <sushkov at dins dot ru>
- Date: Mon, 4 Jun 2001 12:27:07 +0300
- Cc: "'Phil Frisbie, Jr.'" <phil at hawksoft dot com>
Hello Phil,
I've got it.
Yes, I had problems with running some app. The app is crashed inside POSIX
Threads for Win32 Library. After I allocate memory before calling xxx_init
functions the problem is disappeared. Now I understand that the problem not
in using POSIX function but the memory is corrupted somewhere else.
Thank you,
Alexey Sushkov.
-----Original Message-----
From: Phil Frisbie, Jr. [mailto:phil@hawksoft.com]
Sent: Friday, June 01, 2001 7:59 PM
To: Alexey Sushkov
Subject: Re: Posix
Alexey Sushkov wrote:
>
> Hello Phil,
>
> Thank you for quick answer. Yes I'am using POSIX Threads for Win32
Library.
Sorry for that question, I did not notice that your message came from the
pthreads-win32 mail list. Did I reply to the list, or directly to you? I was
not
yet fully awake this morning :)
> I have new question: are you allocate memory before using the functions?
No. Both pthread_attr_init and pthread_mutex_init allocate the structures.
> If yes it means that the app I am porting has bugs because there no memory
> allocation before using the functions. There is passed only a pointer to
> pointer into the functions.
You only pass a pointer to pointer for both.
Are you having a problem compiling your app? Or running it?
> With best regards,
> Alexey Sushkov.
Phil Frisbie, Jr.
Lead Developer, Hawk Software
http://www.hawksoft.com