Improvement request?

39 views
Skip to first unread message

Pedro Alvarado

unread,
Jan 25, 2012, 11:06:21 PM1/25/12
to nhprof

I've configured NH Profiler so that it logs to a live instance.
However if an instance is not running then, while debugging(e.g. unit
tests), the exception below is thrown. Is it possible to handle this a
bit more gracefully? It's a bit annoying to run across this
exception. Thanks for your time.

System.dll!System.Net.Sockets.TcpClient.Connect(string hostname, int
port) Line 304
HibernatingRhinos.Profiler.Appender.DLL!
HibernatingRhinos.Profiler.Appender.Channels.TcpProfilerChannel.OpenChannel()
+ 0x96 bytes
HibernatingRhinos.Profiler.Appender.DLL!
HibernatingRhinos.Profiler.Appender.Channels.StreamProfilerChannel.InitializeChannelToProfiler()
+ 0x95 bytes
HibernatingRhinos.Profiler.Appender.DLL!
HibernatingRhinos.Profiler.Appender.Channels.TcpProfilerChannel.ShouldSendDataToProfiler.get()
+ 0x100 bytes
HibernatingRhinos.Profiler.Appender.DLL!
HibernatingRhinos.Profiler.Appender.ProfilerInfrastructure.SendStatisticInformation()
+ 0x64 bytes
HibernatingRhinos.Profiler.Appender.DLL!
HibernatingRhinos.Profiler.Appender.ProfilerInfrastructure.SendMessagesToProfiler()
+ 0x90 bytes
mscorlib.dll!
System.Threading.ThreadHelper.ThreadStart_Context(object state) + 0x63
bytes

Oren Eini (Ayende Rahien)

unread,
Jan 26, 2012, 9:54:21 AM1/26/12
to nhp...@googlegroups.com
It _is_ handled, and there isn't a way to check to establish a TCP connection that won't throw.


--
You received this message because you are subscribed to the Google Groups "nhprof" group.
To post to this group, send email to nhp...@googlegroups.com.
To unsubscribe from this group, send email to nhprof+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nhprof?hl=en.


Reply all
Reply to author
Forward
0 new messages