discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in gui 0.9.2 (NSImage::size)


From: Andreas Höschler
Subject: Re: Bug in gui 0.9.2 (NSImage::size)
Date: Sat, 29 May 2004 23:59:32 +0200

Hello Alexander,

Problem is that on some systems, sending messages that return a
structure to a nil receiver causes a crash due to the way structures are
returned.

This particular instance was fixed 2004-05-27, though, so with newest
cvs, it should be ok. (Schroedingbug? :)

I have downloaded and installed the latest snapshot. I believe this one already has the fix. However, have you read about the TIFF loading problem? NSImage can load PNGs now, but no longer TIFFs (gui 0.9.0 could), at least on my machine.

   NSString *path = @"/home/ahoesch/Pictures/Sun1.tiff";
   NSLog(@"log A");
   NSData *data = [NSData dataWithContentsOfFile:path];
   NSImage *image = [[NSImage alloc] initWithData:data];
   NSLog(@"log B %@ %@", image, NSStringFromSize([image size]));

2004-05-29 23:54:38.690 RasterService[21086] log A
2004-05-29 23:54:38.718 RasterService[21086] log B <NSImage: 1f0420> {width=0; height=0}
2004-05-29 23:54:38.718 RasterService[21086] representations ()

The image has no representations. With gui 0.9.0 loading the same TIFF works. Any ideas?

Regards,

   Andreas





reply via email to

[Prev in Thread] Current Thread [Next in Thread]