vanan08 / unitt

Automatically exported from code.google.com/p/unitt
0 stars 0 forks source link

AsyncSocket over releasing error? #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Reported by a user:

I discover one over-released object which caused BAD_EXE_ACCESS in this line
return [NSError errorWithDomain:AsyncSocketErrorDomain 
code:AsyncSocketConnectTimeoutError userInfo:info];
in AsynSocket.m

Later this object will be released twice.

How to reproduce this error:
Get server timeout twice

Original issue reported on code.google.com by joshuadmorris@gmail.com on 9 Oct 2011 at 2:31

GoogleCodeExporter commented 9 years ago
I will take a look at this over the weekend. Thank you for reporting the issue.

Original comment by joshuadmorris@gmail.com on 14 Nov 2011 at 3:13

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi,

the release happens in WebSocketXX.m file in the function 
-(void)dispatch:(NSUinteger)aStatusCode message:(NSString*)aMessage 
error:(NSError *)aError

I have already fixed it in my code.

Thanks for the library, I am using it and it works very well.

Original comment by avel...@gmail.com on 25 Nov 2011 at 11:27

GoogleCodeExporter commented 9 years ago

Original comment by joshuadmorris@gmail.com on 1 Dec 2011 at 10:21

GoogleCodeExporter commented 9 years ago

Original comment by joshuadmorris@gmail.com on 31 Jan 2012 at 6:32