<DIV> Hi,guys!</DIV>
<DIV> framebuffer->vtbl->GetAddress(framebuffer,&adr) always returns with 0x8000ffff ,it means</DIV>
<DIV> an unknow excption in xpcom. </DIV>
<DIV> i want to know why it could be this?<BR> thanks a lot....</DIV>
<DIV> /////////////////////////////here is the code</DIV>
<DIV> IFramebuffer* framebuffer;<BR> int xo,yo;<BR> rc=display->vtbl->GetFramebuffer(display,0,&framebuffer,&xo,&yo);<BR> if(NS_SUCCEEDED(rc)) printf("framebuffer exist\n");//realy exist...<BR> <BR> unsigned int fw,fh,fbpp;<BR> framebuffer->vtbl->GetWidth(framebuffer,&fw);<BR> framebuffer->vtbl->GetHeight(framebuffer,&fh);<BR> framebuffer->vtbl->GetBitsPerPixel(framebuffer,&fbpp);<BR> printf("framebuffer   Width: %u Height: %u Bits Per Pixel: %u \n ",fw,fh,bpp);<BR> //printf outputs the correct  Width Height and Bits Per Pixel......but getaddress fails....</DIV>
<DIV><BR> unsigned char* adr;</DIV>
<DIV> rc=framebuffer->vtbl->GetAddress(framebuffer,&adr);<BR> if(NS_SUCCEEDED(rc)) ////////fails here ???why <BR> printf(">>>>>>>>>>>>>>>>%p.......\n",adr);</DIV>