discuss-gnustep
[Top][All Lists]
Advanced

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

sync.m


From: icicle
Subject: sync.m
Date: Sat, 27 Feb 2010 16:54:14 +0100
User-agent: Internet Messaging Program (IMP) H3 (4.0.4)

Hi!

I am doing something like:

@synchronized(self)
{
  if ( MY_SINGLETON_VARIABLE == nil )
  {
      [[ self alloc ] init ];
  }
}

Looks like in sync.m:initLockObject my objects ISA pointer gets changed. So, at the time "alloc" is called the message lookup simply fails.

TOM





reply via email to

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