Enabling Error Reporting in the OAL (Windows CE 5.0)
The dwNKDrWatsonSize variable sets the amount of memory needed for error reporting dump files in OEMInit. The default initialization of dwNKDrWatsonSize is 300KB.
OEMInit Changes
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
Config.bib Changes
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.
See Also
Implementing the OEMInit Function
Send Feedback on this topic to the authors