Page 2 of 2

Re: SFSBUddyManager crash after connection is close.

Posted: 19 Jun 2012, 13:13
by mmilen
I'm try to plug the Framework API into existing project , that use older release from source.

I get
+[NSStream getStreamsToHostNamed:port:inputStream:outputStream:]:
on the line [self.client connect];

self.client = [[SmartFox2XClient alloc] initSmartFoxWithDebugMode:YES delegate:self];
[self.client loadConfig:@"config.xml" connectOnSuccess:NO];
client.logger.loggingLevel = LogLevel_DEBUG;
[self.client connect];

config.xml is the same as the one used in the latest Connection example/

Re: SFSBUddyManager crash after connection is close.

Posted: 19 Jun 2012, 14:10
by mmilen
I replaced the source code API with Framework API i a perfectly working project. (Had to change linker flags to fix the NSStream error.)

The result is the same crash after I call client disconnect. So the code that manages Buddies is absolutely not identical. See the attached screen. It is from a project that has been in production for more than a year.
The error does not come up when the Buddy list is empty. So my bet is there is something fish with the way buddies are added/removed to the list.

Re: SFSBUddyManager crash after connection is close.

Posted: 19 Jun 2012, 19:31
by A51Integrated
I can now replicate the bug when the buddy list is full. Thank you. We've also located the error and it has been fixed. We'll just package up a new release. Check the updates page for it soon.

Re: SFSBUddyManager crash after connection is close.

Posted: 19 Jun 2012, 19:57
by mmilen
Thank you very much.