SFSBUddyManager crash after connection is close.

Post here your questions about the Objective-C API for SFS2X

Moderators: Lapo, Bax

mmilen
Posts: 298
Joined: 09 Nov 2010, 00:48
Contact:

Re: SFSBUddyManager crash after connection is close.

Postby mmilen » 19 Jun 2012, 13:13

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/
mmilen
Posts: 298
Joined: 09 Nov 2010, 00:48
Contact:

Re: SFSBUddyManager crash after connection is close.

Postby mmilen » 19 Jun 2012, 14:10

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.
Attachments
Screen Shot 2012-06-19 at 9.58.55 AM.png
(248.92 KiB) Not downloaded yet
User avatar
A51Integrated
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada
Contact:

Re: SFSBUddyManager crash after connection is close.

Postby A51Integrated » 19 Jun 2012, 19:31

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.
A51 Integrated
http://a51integrated.com / +1 416-703-2300
mmilen
Posts: 298
Joined: 09 Nov 2010, 00:48
Contact:

Re: SFSBUddyManager crash after connection is close.

Postby mmilen » 19 Jun 2012, 19:57

Thank you very much.

Return to “SFS2X iPhone / iPad / OSX API”

Who is online

Users browsing this forum: No registered users and 7 guests