No Pixmaps loaded

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

Hi,

I'm porting two Motif applications from version 2.2 to 2.3.

No I have a problem with loading the XPM files into the cache, im using the XmGetPixmap() function, the return value is always XmUNSPECIFIED_PIXMAP.

When I create a simple application to prove Motif behaves correctly, the pixmaps are loaded and displayed as expected.

So I downloaded the source RPM and added some printf statements to debug the return values of the procedures to load the XPM files into the cache, I found that Motif is actually trying to load a XPM as a JPEG image, the source of the problem I was able to located in function load_jpeg in file lib/Xm/Jpeg.c the return value of setjmp(jerr.setjmp_buffer) is 2 instead of 1.

I'm using RHEL 6 Update 4.

Here an extract of the application initialization, the application is multi-threaded.

int main( ... ) {
   Widget parent;
   XtAppContext app;
   XInitThreads();
   XtToolkitThreadInitialize();
   XtSetLanguageProc( 0, 0, 0 );
   parent = XtVaOpenApplication( ... );
   exitPixmap = XmGetPixmap( XtScreen( parent ), "exit.xpm", WhitePixelOfScreen( XtScreen( parent ) ), BlackPixelOfScreen( XtScreen( parent ) ) );
   // ...
   return 0;
}

Regards sam

Mon, 02/03/2014 - 04:35
#1
5 posts / 0 new
Last post
16
Fri, 02/14/2014 - 14:32
-39
Hi,
Thu, 02/20/2014 - 08:22
-49
Mon, 02/24/2014 - 05:59
18
Hi,
Mon, 02/24/2014 - 06:21