Satheesh Ganapathi Subramanian (gsat++at++evl.uic.edu)
Thu, 2 Dec 1999 03:10:06 -0600 (CST)
I'm having a problem with pfTexture::loadFile. I've created a pfTexture
pfTexture *tex = new pfTexture;
and I want to load a particular image as the texture.
I use loadFile for that as follows:
tex->loadFile("testimage.rgb");
But the program seems to crash at this function giving a Bus Error. dbx
gives the following error message:
Source (of malloc.c) not available for Process 1214
The call stack of dbx shows:
> 0 __malloc(0x98, 0x407cad29, 0x98, 0xfb48afc) ["malloc.c":209,
0xfa372e0]
1 _malloc(0x98, 0x407cad29, 0x98, 0xfb48afc) ["malloc.c":186,
0xfa39ea4]
2 _calloc(0x98, 0x407cad29, 0x98, 0xfb48afc) ["calloc.c":40, 0xfa41928]
3 imgopen(0x0, 0x7fff2ca0, 0x3c10cc78, 0x2e) ["open.c":35, 0x43a264]
4 iopen(0x7fff2ca0, 0x3c10cc78, 0x2e, 0x7fff2ca0) ["open.c":17,
0x43a1a8]
5 pfTexture::pr_load_sgi_image(const char*)(0x181ca910, 0x7fff2ca0,
0x98, 0xfb48afc) ["../../../lib/libpr/pfTexture.C":4650, 0x3bf8aa00]
6 pfTexture::loadFile(const char*)(0x181ca910, 0x10012e20, 0x98,
0xfb48afc) ["../../../lib/libpr/pfTexture.C":2550, 0x3bf86c94]
Can someone tell me where I'm going wrong.
Thanks,
Satheesh
This archive was generated by hypermail 2.0b2 on Thu Dec 02 1999 - 01:10:07 PST