[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Sep 7 12:42:57 1993 
Subject:XFontstruct & Saved images 
From:Kevin Richards [METOFF] 
Volume-ID:930907.01 

Hi,
	I've recently been trying to use saved images with X-windows.
	I am having trouble with the font handling routines, suppose I make a saved
	image with 

		pop11 %nort mkimage something popxlib xlib XFonts

	when I try to load a font it executes ok, but the XCharStruct's seem to be
	garbaged  


vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
	
kr1 [298] > pop11 +something %x


Sussex POPLOG (Version 14.2 Wed Feb  3 12:46:18 GMT 1993)

Setpop
: XLoadQueryFont(XptDefaultDisplay, '8x16') -> font;
;;; DECLARING VARIABLE font
: font =>
** <pointer to XFontStruct> 
: font(0);
: =>
** Anonymous struct
        ext_data -          <external_ptr>
        fid -               23068675
        direction -         0
        min_char_or_byte2 - 0
        max_char_or_byte2 - 255
        min_byte1 -         0
        max_byte1 -         0
        all_chars_exist -   1
        default_char -      32
        n_properties -      19
        properties -        <pointer to XFontProp>
        
<<<<<<< Access Violation: PC = 0038A604, Addr = 0037E4A8, Code = 4 >>>>>>>

min_bounds -        
;;; MISHAP - serr: MEMORY ACCESS VIOLATION (attempt to alter non-writeable
         system structure?)
;;; DOING    :  sysprmishap mishap min_bounds apply struct_field_access
         Printstruct syspr spr appdata => <false> sysEXECUTE pop11_exec_stmnt_
        seq_to sysCOMPILE pop11_comp_stream compile pop_setpop_compiler
         setpop 


vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv


the other pointers to structures seem okay, but the nested XCharStruct structures
both seem haywire.

What Can I Do ...................?????

	Thanks in advance
	Answers on a very big postcard ....

			Kev
____________________________________________________________________
Kevin Richards                              K.Richards@reading.ac.uk        

                University of Reading, Whiteknights, 
                       Reading, Berkshire, Uk

                    Phone +44 734 875123 ext 7642