VS.net 2003 English; VA X 1272.
I have the following piece of code:
DWORD MtStatsUpdateThread::ThreadProc( LPVOID pData /*= NULL*/ )
{
MtStatsUpdaterService * pService = reinterpret_cast<MtStatsUpdaterService*>( pData );
InterlockedExchange( (LONG volatile*)&m_dwLastTick, GetTickCount() - 120000ul );
WNDCLASS wc;
ATOM atmClass;
ZeroMemory( &wc, sizeof(wc) );
wc.lpfnWndProc = (WNDPROC)WindowProc;
wc.hInstance = GetModuleHandle(NULL);
wc.lpszClassName = "wcIvMtStatsUpdater";
atmClass = RegisterClass( &wc );
HWND hWndUpdates = CreateWindow( wc.lpszClassName, "wndIvMtStatsUpdater", WS_POPUP,
CW_USEDEFAULT, CW_USEDEFAULT,
CW_USEDEFAULT, CW_USEDEFAULT,
NULL,
NULL,
GetModuleHandle(NULL),
NULL );
SetWindowLongPtr( hWndUpdates, GWLP_USERDATA, (LONG)(LONG_PTR)this );
// ...
The problem is with the NULL marked in red. When I load the IDE and VA X finishes parsing files, it is black and not italic. The rest of the NULLs are correctly colored and italicized. There's more: if I put the cursor anywhere above the line containing 'GetModuleHandle(NULL)' argument, press shift and start extending the selection by pressing the down arrow, the NULL gets colored and italicized when the line with 'GetModuleHandle(NULL)' gets selected. Sometimes it stays that way when I remove the selection, sometimes it doesn't. If it stays colored/italicized it is enough to press pageup (to remove it from the view) and then pagedown to get it back in its 'unrecognized' state.
Edit: I forgot to mention that I had the same problem with build 1246.