Websocket error!

I use Websocket to connect my server, Everything is working properly
But When the server closes the connection it shows this window (cocos2d-x 2.1.4 on windows 7)
“This Application has requested the Runtime to terminate it in an unusual way…”
And the main thread continues playing


015608.jpg (23.6 KB)

I found some one has the same problem,
It Seems to occur only under Windows。

I am having trouble connecting to a Websocket server using the sample code.

cocos2d: [WebSocket::init] _host: echo.websocket.org, _port: 80, _path: /
cocos2d: [WebSocket::init] _host: echo.websocket.org, _port: 80, _path: /
cocos2d: [WebSocket::init] _host: invalid.url.com, _port: 80, _path: /
[1380196390:8623] NOTICE: Initial logging level 7
[1380196390:8624] NOTICE: Library version: 1.3 1544a2a
[1380196390:8624] NOTICE:  Started with daemon pid 0
[1380196390:8624] NOTICE:  static allocation: 4436 + (12 x 256 fds) = 7508 bytes
[1380196390:8627] NOTICE: Initial logging level 7
[1380196390:8627] NOTICE: Library version: 1.3 1544a2a
[1380196390:8628] NOTICE:  Started with daemon pid 0
[1380196390:8628] NOTICE:  static allocation: 4436 + (12 x 256 fds) = 7508 bytes
[1380196390:8630] NOTICE: Initial logging level 7
[1380196390:8655] NOTICE: Library version: 1.3 1544a2a
[1380196390:8655] NOTICE:  Started with daemon pid 0
[1380196390:8655] NOTICE:  static allocation: 4436 + (12 x 256 fds) = 7508 bytes
cocos2d: Error was fired, error code: 1
cocos2d: websocket instance (0x28821e0) closed.
cocos2d: Error was fired, error code: 1
cocos2d: Error was fired, error code: 1
cocos2d: websocket instance (0x287bbc0) closed.
cocos2d: websocket instance (0x287bc00) closed.

Which websocket server do you use?

i got the same problem as well