discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Gorm loading problems


From: Fred Kiefer
Subject: Re: Gorm loading problems
Date: Thu, 21 Feb 2013 17:11:22 +0100

-------- Original-Nachricht --------
> Datum: Thu, 21 Feb 2013 14:51:41 +0100
> Von: Riccardo Mottola <address@hidden>
> An: Fred Kiefer <address@hidden>
> CC: address@hidden
> Betreff: Re: Gorm loading problems

> Hi,
> 
> Fred Kiefer wrote:
> > On 19.02.2013 23:37, Riccardo Mottola wrote:
> >
> > Run your application in a debugger and place a break point on 
> > [NSException raise] it will stop on the error and a few lines up the 
> > stack trace you will see the offending line in the initWithCoder: 
> > method. Most likely the type of an enumerator was changed and you need 
> > to replace that enumerator in the coding and decoding code with 
> > NSInteger.
> >
> All 4 exceptions have the same trace:
> 
> #0  -[NSException raise] (self=0xb9ff3ce4, _cmd=0xbb6ad448)
>      at NSException.m:955
> #1  0xbb3d89b7 in +[NSException raise:format:arguments:] (self=0xbb6ad260,
>      _cmd=0xbb6ad430, name=0xbb6ad578, format=0xbb6e62f8,
>      argList=0xbfbfcca0 
> "aÙ`»jÙ`»æu1»\204<ÿ¹`=h»\004_&»`=h»,çg»ïi1»¤<ÿ¹øÿÿÿÌ>\032»`Òj»I")
> at 
> NSException.m:849
> #2  0xbb3d95fc in +[NSException raise:format:] (self=0xbb6ad260,
>      _cmd=0xbb6e5fe0, name=0xbb6ad578, format=0xbb6e62f8) at 
> NSException.m:835
> #3  0xbb4a6f3b in typeCheck (t2=<optimized out>, t1=<optimized out>)
>      at NSUnarchiver.m:248
> #4  -[NSUnarchiver decodeValueOfObjCType:at:] (self=0xb9f71e24,
>      _cmd=0xbbb0f430, type=0xbba1baa4 "I", address=0xb9fb0d88)
>      at NSUnarchiver.m:1022
> #5  0xbb8d165c in -[NSParagraphStyle initWithCoder:] (self=0xb9fb0d44,
>      _cmd=0xbb6e60c8, aCoder=0xb9f71e24) at NSParagraphStyle.m:474
> 
> that would hint to NSParagraphStyle.m
> 474: [aCoder decodeValueOfObjCType: @encode(NSLineBreakMode) at: 
> &_lineBreakMode];
> 
> I suppose thus it is due to the change of NSLinebreakMode ? And now? It 
> doesn't look like an enumerator.

To me it looks like an enumerator :-)
Or at least it used to be one that got redefinied. Just replace it with 
NSInteger in the @encode and see if that works.

Fred



reply via email to

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