N
nobody
Hi:
I am using Visual Studio .NET 2003 and console project (disabled
precompiled header).
I am using _tcstok() which resolves to strtok in my case. It keeps
crashing (unhandled error, access violation). Firt I thought my variable
wasn't writtable (const) but it wasn't so I used literal as input but it
still crashes.
it crashes exactly in strtok.c (line 99):
....
for ( ; *str ; str++ )
if ( map[*str >> 3] & (1 << (*str & 7)) ) {
*str++ = '\0';
break;
}
....
My test call is like this strtok("hklm\\software","\\"); Anyhow I went
through all over the net and I didn't find anything related to my problem.
Thanks in advance.
I am using Visual Studio .NET 2003 and console project (disabled
precompiled header).
I am using _tcstok() which resolves to strtok in my case. It keeps
crashing (unhandled error, access violation). Firt I thought my variable
wasn't writtable (const) but it wasn't so I used literal as input but it
still crashes.
it crashes exactly in strtok.c (line 99):
....
for ( ; *str ; str++ )
if ( map[*str >> 3] & (1 << (*str & 7)) ) {
*str++ = '\0';
break;
}
....
My test call is like this strtok("hklm\\software","\\"); Anyhow I went
through all over the net and I didn't find anything related to my problem.
Thanks in advance.