PC Review


Reply
Thread Tools Rate Thread

Dr Watson fails with more than 25 threads on windows 2003 web server edition?

 
 
Chris
Guest
Posts: n/a
 
      26th Apr 2004
Is this a known fault in Dr Watson/ Windows 2003 web sever edition?

Using this sample code, if an application
has more than 25 threads it fails to generate dr watson
information. The Dr Watson log just contains:

D:\>del c:\windows\drwtsn32.log
D:\>threads 29
Creating 29 threads
D:\>type c:\windows\drwtsn32.log

Microsoft (R) DrWtsn32
Copyright (C) 1985-2002 Microsoft Corp. All rights reserved.

D:\

And that's it, no back trace, the same code with 10 threads works
perfectly and generates a full stack back trace in the dr watson log
file.

Is this a known dr watson fault in windows 2003 ? Or is it a setting
somewhere ? Or ... have I done something wrong below. I'm really
mystified, surely someone else has wanted to debug an application with
more than 25 threads on windows 2003 :-)

Here is the code sample:

#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <windows.h>
#include <process.h>

int __stdcall fn(void *x)
{
for (;TRUE {
Sleep(1000);
} // lost handle but never exits so this is ok.
}

int th_new(int (__stdcall *fn)(void *p1), void *arg)
{
unsigned long h;
if (_beginthreadex(NULL,64000, (LPTHREAD_START_ROUTINE) fn ,(void *)
arg,0,&h)==0) {
printf("Thread creation failed %s\n",strerror(errno));
return FALSE;
} return TRUE;
}
int main(int argc, char *argv[])
{
int k;
char *s=NULL;
int n = atoi(argv[1]);
if (n==0) n = 30;
printf("Creating %d threads\n",n);
for (k=0; k<n; k++) th_new(fn,NULL);
*s = 1;
}
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the maximum number of threads can running under windows xp pro & windows server 2003 & Vista ? Neo Windows XP Drivers 1 11th Aug 2008 10:14 PM
Windows Server 2003 Web Edition and .NET 2.0 AG Microsoft Dot NET 2 30th Nov 2006 02:07 AM
Error loading Outlook 2003 on Windows 2003 Server Standard Edition SP1 Brandon Owensby Microsoft Outlook 0 6th Sep 2005 07:43 PM
Error loading Outlook 2003 on Windows 2003 Server Standard Edition SP1 Brandon Owensby Microsoft Outlook Discussion 0 6th Sep 2005 07:43 PM
Front Page 2003 site on Windows Server 2003 Web Edition problems Dan Microsoft Frontpage 1 15th Feb 2005 05:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:02 PM.