Re: CreateThread fail in Win98
- From: "Alexander Grigoriev" <alegr@xxxxxxxxxxxxx>
- Date: Sat, 2 Aug 2008 22:04:27 -0700
Unfortunately, Win9x remark has been removed from the last argument
description. I suppose MSDN doesn't support Win9x anymore.
WIn2003 SDK has the following:
lpThreadId
[out] Pointer to a variable that receives the thread identifier. If this
parameter is NULL, the thread identifier is not returned.
Windows Me/98/95: This parameter may not be NULL.
<dim.raft@xxxxxxxxx> wrote in message
news:2011f245-dd03-413b-9408-c5dad86a950a@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi Alexander,
Thank you for your response but I'm a bit confused.
Are you saying that the you know the reason, and that it is documented
in the SDK? or that the SDK is just somewhere I should look?
I can assure you that I have examined the article on CreateThread() in
MSDN in depth prior to posting on this forum. I did not see anything
that related directly to my problem.
If you can tell me which exact line I should be looking at in the
doco, it would be appreciated.
Dimitri
On Aug 3, 11:23 am, "Alexander Grigoriev" <al...@xxxxxxxxxxxxx> wrote:
Check CreateThread documentation in SDK.
You'll find there an exact reason why it failed.
<dim.r...@xxxxxxxxx> wrote in message
news:5630f5e8-41f0-4607-bf9a-ed94040be3ad@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
I have an existing program that creates a thread as follows:
hThread = CreateThread( NULL,
0,
ThreadFunc,
NULL,
0,
NULL);
if (hThread == NULL)
{
int nErrorCode = GetLastError();
MessageBox(NULL, "Error Creating Thread", "", MB_OK);
}
The code is in a dll, and it has worked fine for most of my customers
which are running XP and Vista.
A new customer is running Win98 and they are getting the error "Error
Creating Thread", which based on my code means that hThread is NULL.
I used GetLastError() to get the error and it was 87:
ERROR_INVALID_PARAMETER.
My customer is not local, and I do not have access to a computer
running Windows 98 to see if this is a general problem with my code on
Win98, or a specific issue with my customers machine.
There doesn't appear to be anything wrong with my call to
CreateThread, it's all pretty standard stuff, and like I said, it
works fine on XP and vista.
Does anyone have any suggestions as to what is happening, and how I
can fix it?
Any help would be greatly appreciated.
.
- References:
- CreateThread fail in Win98
- From: dim . raft
- Re: CreateThread fail in Win98
- From: Alexander Grigoriev
- Re: CreateThread fail in Win98
- From: dim . raft
- CreateThread fail in Win98
- Prev by Date: Re: CreateThread fail in Win98
- Next by Date: Re: Simple GDI function causes BSOD
- Previous by thread: Re: CreateThread fail in Win98
- Next by thread: Re: CreateThread fail in Win98
- Index(es):
Relevant Pages
|