Export (0) Print
Expand All

Enabling Error Reporting in the OAL (Windows Embedded CE 6.0)

1/5/2010

The dwNKDrWatsonSize variable sets the amount of memory needed for error reporting dump files in OEMInit. The default initialization of dwNKDrWatsonSize is 300KB.

The following snippet shows how to initialize dwNKDrWatsonSize to 128KB:

extern DWORD dwNKDrWatsonSize;
extern DWORD dwOEMDrWatsonSize;

#define NOT_FIXEDUP (DWORD)-1
DWORD dwOEMDrWatsonSize = NOT_FIXEDUP;


OEMInit()
{
... 
 if (dwOEMDrWatsonSize != NOT_FIXEDUP) 
 {
         // Reserve memory for Error Reporting Dumps
         dwNKDrWatsonSize = dwOEMDrWatsonSize;
}
     //rest of OemInit 

In config.bib add the following:

#if $(WATSONBUFFERSIZE)==$()
    #define WATSONBUFFERSIZE     00020000
#endif
    dwOEMDrWatsonSize   00000000    $(WATSONBUFFERSIZE)   FIXUPVAR

Using a FIXUPVAR will allow the size to be changed easily by defining the size WATSONBUFFERSIZE. If WATSONBUFFERSIZE is not defined, a default value of 300KB is used.

Community Additions

ADD
Show:
© 2014 Microsoft