win7x64-vs2008-错误【下面的框架可能不正确和/或缺失,没有为 ntdll.dll 加载符号】

网上搜了一下发现说是很多原因。

但是vs提示是堆栈溢出。

程序如下:

//..





#define MAXSIZE 1024



const char g_dll_path[MAXSIZE] = "E:\\";

const char g_eyes_filename[MAXSIZE] = "E:\\eyes.txt";

const char g_image_path[MAXSIZE] = "E:\\image";





int main()

{

	char buffer[MAXSIZE];

	char imgfilename[MAXSIZE];

        unsigned char raw_image[MAXSIZE * MAXSIZE];

	

	unsigned int height;

	unsigned int width;



	float lx, ly, rx, ry;

	FILE *pEyes = fopen(g_eyes_filename, "r");

	if(pEyes == NULL)

	{

		//perror("open file fail!\n");

		return -1;

	}

	while(fgets(buffer, MAXSIZE, pEyes) != NULL)

	{

		if(buffer[0] == '/' && buffer[1] == '/')

			continue;

		//printf("%s\n", buffer);

		sscanf(buffer, "%s%f%f%f%f", imgfilename, &lx, &ly, &rx, &ry);

		//printf("%s\t%f %f %f %f\n", imgfilename, lx, ly, rx, ry);



		sprintf(buffer, "%s\\%s", g_image_path, imgfilename);



		if(ImageReader(buffer, raw_image, &height, &width))

		{

			perror("read image fail!\n");

			continue;

		}



		//...

	}



	fclose(pEyes);

	return 0;

}

  把

unsigned char raw_image[MAXSIZE * MAXSIZE];

移到main函数外面去就好了

难道win7x64下局部栈空间有限?

你可能感兴趣的:(vs2008)