Encounter a runtime error: expression cannot be evaluated

My project is a VC++ project and uses C compiler. No errors at compile time, but encounter a runtime error "CXX0030: Error: expression cannot be evaluated".

Thanks for your help!

char * lookForMarker (char *s1, char *s2, int numchar)
{
int i;
char * p = NULL;
for (i=0; i<numchar; i++)
{
if (s1[i] == s2[0])
{
if (!strncmp (&s1[i], s2, 6))
return &s1[i];
}
}
return NULL;
}
UCHAR * parseRXBuffer (UCHAR *dataptr, char *marker, DWORD size){
char *buffp = NULL;
buffp = lookForMarker (tbuff, marker, size);
//buffp is a bad pointer and runtime error "CXX0030: Error: expression cannot be evaluated".

}
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories