halitpeker / servicestack

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

Safe Handle Has Been Closed #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. theRedisClient = new RedisClient(dbHostAddress);
2. Upon GC of the RedisClient a "Safe Handle Has Been Closed" exception is 
triggered.

What version of the product are you using? On what operating system?
.NET 3.5 and latest release of ServiceStack.dll 

Please provide any additional information below.
Call Stack Included:
System.dll!System.Net.Sockets.Socket.UnsetAsyncEventSelect() + 0x53 bytes   
System.dll!System.Net.Sockets.Socket.SetToDisconnected() + 0x1e bytes       
System.dll!System.Net.Sockets.Socket.UpdateStatusAfterSocketError(System.Ne
t.Sockets.SocketError errorCode) + 0x4e bytes   
System.dll!System.Net.Sockets.Socket.Send(byte[] buffer, int offset, int 
size, System.Net.Sockets.SocketFlags socketFlags, out 
System.Net.Sockets.SocketError errorCode = NotSocket) + 0x226 bytes 
System.dll!System.Net.Sockets.Socket.Send(byte[] buffer, int offset, int 
size, System.Net.Sockets.SocketFlags socketFlags) + 0x20 bytes  
System.dll!System.Net.Sockets.Socket.Send(byte[] buffer) + 0x18 bytes   

ServiceStack.dll!ServiceStack.Redis.RedisNativeClient.SendCommand(byte[][] 
cmdWithBinaryArgs = {byte[1][]}) + 0x91 bytes   
ServiceStack.dll!ServiceStack.Redis.RedisNativeClient.Quit() + 0x55 bytes   
ServiceStack.dll!ServiceStack.Redis.RedisNativeClient.DisposeConnection() + 
0x48 bytes  
ServiceStack.dll!ServiceStack.Redis.RedisNativeClient.Dispose(bool 
disposing = false) + 0x53 bytes 
ServiceStack.dll!ServiceStack.Redis.RedisNativeClient.Finalize() + 0x3a 
bytes   

Original issue reported on code.google.com by mode...@gmail.com on 7 May 2010 at 11:06

GoogleCodeExporter commented 9 years ago
Ok, it's the double-ObjectDisposedException of unmanaged resources bug showing 
itself 
here. Fixed in trunk, available in next release.

Original comment by demis.be...@gmail.com on 8 May 2010 at 11:23