views:

15

answers:

0

in a function named buildtexture, it loaded the image and build texture for OpenGL, when i called CreateDIBSection, it will creat a bitmap. If the function buildtexture was called as a normal member function, there will be nothing wrong. But if i called this member function in a thread, the CreateDIBSection will return 0 that means it failed. And even the GetLastError alse returned 0 after the calling of CreateDIBSection. I guess the thread has no enough spaces to create the bitmap. And i don't know how to solve this problem. Any one can help me? Thank you very much!