sriramana20 / unitt

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

sendText/sendBinary error in WebSocket07.h #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Included the necessary header files & library needed
2. declare WebSocket object and call -(void) close method to connect to 
WebSocket
3. on - (void) didOpen delegate method, called - (void) sendText [in other 
tests, - (void) sendBinary is called], but application crashed

What is the expected output? What do you see instead?
Error message received was *** Terminating app due to uncaught exception 
'NSInvalidArgumentException', reason: '-[WebSocket sendBinary:]: unrecognized 
selector sent to instance 0x269640'

What version of the product are you using? On what operating system?
Using 2.1 version; xcode 4

Please provide any additional information below.
header files clearly indicate that - (void)sendText:(NSString*)message; and - 
(void)sendBinary:(NSData*)message; methods exists, and compiling my code does 
not cause any errors.  But once the app is executed, it crashes on those method 
calls.  Please advise

Original issue reported on code.google.com by devacct....@gmail.com on 27 Jun 2011 at 2:22

GoogleCodeExporter commented 8 years ago
The WebSocket00 and WebSocket07 files implement two different classes with the 
same name. I'm not sure how this is supposed to be usable -- I didn't think it 
would even compile (the library). Although it does (if you checkout the source 
and build the library project).

Original comment by bgulanow...@gmail.com on 27 Jun 2011 at 9:00

GoogleCodeExporter commented 8 years ago
Please try the new v2.2 build. It should address your issue.

Original comment by joshuadmorris@gmail.com on 28 Jun 2011 at 2:53

GoogleCodeExporter commented 8 years ago
Hi,

I just tested build 2.2, and I got another crash.  I couldn't even connect
to the socket.  I'm getting this error message:

-[NSConcreteMutableData base64EncodedString]: unrecognized selector sent to
instance 0x2a1e90

*** Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: '-[NSConcreteMutableData base64EncodedString]: unrecognized selector
sent to instance 0x2a1e90'

Please Advise.  Thank you.

Original comment by devacct....@gmail.com on 28 Jun 2011 at 9:12

GoogleCodeExporter commented 8 years ago
Sounds like you are missing the "-all_load" linker flag. If you have that flag, 
it will find the category additions to NSData, otherwise, it will not be 
included. Verify you have that flag set and let me know.

Original comment by joshuadmorris@gmail.com on 28 Jun 2011 at 3:10

GoogleCodeExporter commented 8 years ago
I have verified this in the current build. I am going to mark this as verified. 
If you are still experiencing the issue, feel free to open a new issue and I 
will handle it immediately. :)

Original comment by joshuadmorris@gmail.com on 6 Jul 2011 at 3:14