Brian Furtaw (brian++at++sgi.com)
Mon, 06 Dec 1999 10:10:17 -0500
Brian
Satheesh Ganapathi Subramanian wrote:
>
> Hi Performers,
>
> 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
>
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
--
----oOOo---- ----oOOo---- ----oOOo---- ----oOOo----
Brian Furtaw (brian++at++sgi.com)
Graphics Guru Office:(301)572-3293 Fax: (301)572-3280
12200-G Plum Orchard Drive OpenGL/Performer/OpenInventor/ImageVision
Silver Spring, Maryland 20904 Optimizer/React/PCI Device Drivers
This archive was generated by hypermail 2.0b2 on Mon Dec 06 1999 - 07:24:47 PST