Thread View: comp.windows.misc
2 messages
2 total messages
Started by P.C. Bahrs
Wed, 17 Aug 1988 20:29
Microsoft Windows
Author: P.C. Bahrs
Date: Wed, 17 Aug 1988 20:29
Date: Wed, 17 Aug 1988 20:29
34 lines
1401 bytes
1401 bytes
Given the following code fragments:
#define INITIAL_SIZE 4000
#define NEWSIZE 8000
GLOBALHANDLE *hData [10];
float FAR *lpfDATA [10];
if (NULL == (hData [X] = GlobalAlloc (GHND, (DWORD) INITIAL_SIZE)))
return FALSE;
....
if (NULL == (hTemp = GlobalRealloc (hData [X], (DWORD) NEW_SIZE, GHND)))
return FALSE;
....
if (NULL != GlobalFree ((GLOBALHANDLE) hData [X]))
return FALSE;
....
if ((NULL == (lpfDATA[X] = (float FAR *) GlobalLock ((GLOBALHANDLE) hData [X])))
return FALSE;
...
GlobalUnlock ((GLOBALHANDLE) hData [X]);
...
The system works great if code segments are all MOVEABLE, but if the
code segments are marked as MOVEABLE DISCARDABLE and some data has been
loaded into the system AND HeapWalk is run to allocate all of memory...
the infamouse DEV AUX error appears! This error does not appear if the
data is not loaded (i.e. the User Interface seems robust). Does anyone
have any comments?
Also, is there a way to bypass or trap the DEV AUX error? (which causes
the user to warm boot!)
Reply on News or : pcb@usl.usl.edu csnet
Re: Microsoft Windows
Author: Bill Turner
Date: Mon, 22 Aug 1988 17:33
Date: Mon, 22 Aug 1988 17:33
11 lines
953 bytes
953 bytes
"Cannot Write to Device AUX" is generated when a fatal exit occurs and you have the debugging kernel of Windows installed (at least, I haven't seen it with the non-debugging kernel...). It means that debugging information is being dumped to COM1: but there is nothing there to receive it. As far as I know, there's no way to get around it (check if you have the debugging kernel installed somehow...). If you're doing development, then I strongly suggest connecting a terminal to COM1, 'cause you're gonna need it for debugging! --Bill Turner
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads