Adrian Aichner writes:
>>>>> "Craig" == Craig Lanning
<CraigL(a)DyCon.com> writes:
Craig> I have now updated from CVS, applied this patch, and
Craig> recompiled.
Craig> Individual tests work!
Craig> Package updates via PUI work!!! (better that they used to)
Craig> Stress test:
Craig> (dotimes (i 200 "grep test passed")
Craig> (unless
Craig> (zerop (call-process "grep" nil '(t nil) nil
Craig> "drivers" "c:\winnt\system.ini"))
Craig> (error "Incorrect call-process return value!")))
Craig> runs to completion without showing the Blue Screen of Death!!!!!
Craig> It first glance, I would say that we have a winner.
That's great news!
Craig> Craig
Craig> P.S. When I quit XEmacs (c-X c-C) the following was printed
Craig> to STDERR:
Craig> Fatal error: assertion failed, file console.h, line 419,
Craig> RECORD_TYPEP (obj, &lrecord_console)
I assume this is related to another os_subtype check in ntproc.c:
static BOOL CALLBACK
find_child_console (HWND hwnd, child_process * cp)
{
DWORD thread_id;
DWORD process_id;
thread_id = GetWindowThreadProcessId (hwnd, &process_id);
if (process_id == cp->procinfo.dwProcessId)
{
char window_class[32];
GetClassName (hwnd, window_class, sizeof (window_class));
if (strcmp (window_class,
(os_subtype == OS_WIN95)
? "tty"
: "ConsoleWindowClass") == 0)
{
cp->hwnd = hwnd;
return FALSE;
}
}
/* keep looking */
return TRUE;
}
I don't have a solution yet.
What do you think we should do to determine os_subtype under
mingw32?
I'm a little confused by Andy's comment that mingw32 doesn't use the
subtype check code. The file ntheap.c gets compiled and linked into
temacs.exe by mingw32 so I assume that his comment is that the code
just doesn't get called. I am not sure why it doesn't get called.
The sample program you sent looks equivalent to what src/ntheap.c
has.
My sample program shows the results of calling GetVersion and
GetVersionEx on the same machine. As you can see in the output that I
showed, my machine would be tagged as a Win95 subtype by either the
GetVersion or GetVersionEx code.
Perhaps Andy can comment what to do?
Anyway, I feel a lot better now than I did a few days ago.
I'd say that we are definitely a lot closer.
Best regards,
Adrian
Craig> and the shell hung waiting for XEmacs to exit.
Craig> Otherwise nothing was printed to STDERR!
--
----------------------------------------------------------------------
Craig Lanning Principal Engineer
Logicon, Inc.
a Northrop Grumman company E-Mail: Lanning(a)scra.org
5300 International Blvd. Voice: 843-760-3246
North Charleston, SC 29418 FAX: 843-760-3780
USA