Hi,

Eric Wasylishen wrote:

Hi Riccardo,

As a starting point for debugging I would put NSLog's in XGCairoModernSurface -initWithDevice: and -dealloc. This is where we retain / release the Cairo surface that is holding memory in the x server.

Also I would put logging in -NSImage set name:, log [nameDict allKeys] to see which images are kept in memory by nameDict.

I did so, in setName.. It does not get called from laternaMagica when switching images. WHile the application loads and shows its windows I see stuff like:

2013-12-18 15:36:39.356 LaternaMagica[18906] NSimage setName, keys: ("common_ret H", "common_Nibble", "common_HomeDirectory", NSApplicationIcon, "common_UnknownT ool", GSMenuArrow, "common_Mount", "common_DownloadFolder", "common_ArrowDown", "laternamagica_48.tif", "common_Home", "common_ArrowLeftH", "common_Close", "com mon_3DArrowLeft", "common_Desktop", "common_ImageFolder", GSMenuSelected, "commo n_3DArrowRightH", GSSwitch, GSSwitchSelected, "common_GSFolder", "common_Dimple" , "common_Unmount", "common_DimpleHoriz", "common_ArrowRightH", "common_DocsFold er", "common_Unknown", "common_ArrowUpH", GSMenuMixed, NSFolder, "common_ArrowUp ", "common_3DArrowUp", "common_ArrowRight", "common_3DArrowDown", "common_ArrowD ownH", "common_ret", "common_ArrowLeft", "common_SliderHoriz")


however when I load images from disk and cycle between them, nothing gets printed, meaning that setName doesn't get called.

Riccardo

_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to