Re: CreateThread fail in Win98

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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.



.



Relevant Pages

  • Re: Semi-transparency
    ... That information is from the July 1999 release of the MSDN Library. ... have the Windows Server 2003 Family version of the Platform Software ... Development Kit (SDK) documentation, which has information similar to the ...
    (microsoft.public.vb.winapi)
  • Re: how to get "Office 2000/XP Developer" CD-ROM?
    ... I know the SDK doesn't support .NET but developers still ... The MSDN Library has all of the Office 2000 and XP SDK documentation so why ... > or ask help from community member to see whether somebody still has that cd. ...
    (microsoft.public.office.developer.office.sdks)
  • Re: Win32 API
    ... Allerdings ist auch diese Datei ... DirectX ist ein eigenes SDK und hat mit der Win32 API nichts zu tun. ... Die MSDN ist die beste und einzige Quelle, ...
    (microsoft.public.de.vc)
  • Re: Constants for API functions
    ... It is not included in the MSDN ... Your absolute best source of these constants are C++ header files (these are ... The MSDN documentation will tell you ... you should install the latest Platform SDK. ...
    (microsoft.public.vb.winapi)
  • Re: Übersicht Windows Message
    ... > die Sie im Download des Platform SDK und im MSDN ... In der MSDN die Beschreibung zu einer Message ... Prev by Date: ... Next by Date: ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)