Fatal Exit Code 0x0506 Definition

ID Number: Q69888

3.00

WINDOWS

Summary:

Fatal Exit code 0x0506 is not documented in Appendix C of the

"Microsoft Windows Software Development Kit Reference Volume 2"

version 3.0.

This Fatal Exit will occur if the GetProfileString() or

GetPrivateProfileString() function is called with the lpDefault

parameter set to NULL. lpDefault specifies a string to return in the

lpReturnedString buffer if no match for lpKeyName is found.

To correct this Fatal Exit, always provide a valid string pointer for

the lpDefault parameter.

GetProfileString() and GetPrivateProfileString() are documented on

pages 4-202 and 4-199, respectively, in volume 1 of the SDK reference.