Click here to Skip to main content
15,918,243 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionRetrieve node texts from treenode Pin
vidhyaravichandar19-Jul-09 22:16
vidhyaravichandar19-Jul-09 22:16 
AnswerRe: Retrieve node texts from treenode Pin
Lee Humphries20-Jul-09 11:39
professionalLee Humphries20-Jul-09 11:39 
GeneralRe: Retrieve node texts from treenode Pin
vidhyaravichandar20-Jul-09 15:53
vidhyaravichandar20-Jul-09 15:53 
QuestionHow to include xml Pin
ksss_maheshece19-Jul-09 21:15
ksss_maheshece19-Jul-09 21:15 
QuestionAsync Sockets Pin
Lee Humphries19-Jul-09 20:38
professionalLee Humphries19-Jul-09 20:38 
AnswerRe: Async Sockets Pin
Nicholas Butler19-Jul-09 22:13
sitebuilderNicholas Butler19-Jul-09 22:13 
GeneralRe: Async Sockets Pin
Lee Humphries20-Jul-09 11:34
professionalLee Humphries20-Jul-09 11:34 
GeneralRe: Async Sockets - the answer Pin
Lee Humphries20-Jul-09 19:11
professionalLee Humphries20-Jul-09 19:11 
Thanks to Nick's suggestion
Nick Butler wrote:
Derive from Socket and override Dispose.
.
I managed to find the fault when I overrode Disconnect and had it dump a stack trace.

The previous version of this service used WSE, the new version of this service uses WCF. In the previous version I had put a call to disconnect in the destructor to ensure that the socket got cleaned up properly. Under WCF the destructor was being invoked at an inopportune time resulting in the socket being disconnected (but not actually disposed).

Various aspects to the solution, but the two main ones were:
1. Remove the 'cleanup' call to disconnect from the destructor. i.e. If you're using my service then you call the disconnect yourself.
2. Supply the decoration [OperationBehavior(TransactionScopeRequired = true)] to each method exposed by the WCF service.

I just love Koalas - they go great with Bacon.

Questiontest Pin
chandni patel18-Jul-09 23:35
chandni patel18-Jul-09 23:35 
AnswerRe: test Pin
Abhijit Jana19-Jul-09 0:14
professionalAbhijit Jana19-Jul-09 0:14 
AnswerResult Pin
leckey19-Jul-09 18:42
leckey19-Jul-09 18:42 
AnswerRe: test Pin
0x3c019-Jul-09 20:45
0x3c019-Jul-09 20:45 
QuestionCombobox - DrawItem and dragging scroll bar problem Pin
David Hovey18-Jul-09 19:18
David Hovey18-Jul-09 19:18 
AnswerRe: Combobox - DrawItem and dragging scroll bar problem Pin
Luc Pattyn19-Jul-09 2:43
sitebuilderLuc Pattyn19-Jul-09 2:43 
GeneralRe: Combobox - DrawItem and dragging scroll bar problem Pin
David Hovey19-Jul-09 6:50
David Hovey19-Jul-09 6:50 
GeneralRe: Combobox - DrawItem and dragging scroll bar problem Pin
Luc Pattyn19-Jul-09 8:26
sitebuilderLuc Pattyn19-Jul-09 8:26 
GeneralRe: Combobox - DrawItem and dragging scroll bar problem [modified] Pin
David Hovey19-Jul-09 11:51
David Hovey19-Jul-09 11:51 
GeneralRe: Combobox - DrawItem and dragging scroll bar problem Pin
Luc Pattyn19-Jul-09 12:17
sitebuilderLuc Pattyn19-Jul-09 12:17 
GeneralRe: Combobox - DrawItem and dragging scroll bar problem Pin
David Hovey19-Jul-09 12:33
David Hovey19-Jul-09 12:33 
Questionloading text [modified] Pin
deadcell_618-Jul-09 8:50
deadcell_618-Jul-09 8:50 
AnswerRe: loading text Pin
Luc Pattyn18-Jul-09 9:07
sitebuilderLuc Pattyn18-Jul-09 9:07 
GeneralRe: loading text [modified] Pin
deadcell_618-Jul-09 9:11
deadcell_618-Jul-09 9:11 
GeneralRe: loading text Pin
Luc Pattyn18-Jul-09 9:21
sitebuilderLuc Pattyn18-Jul-09 9:21 
GeneralRe: loading text Pin
deadcell_618-Jul-09 9:30
deadcell_618-Jul-09 9:30 
GeneralRe: loading text Pin
molesworth18-Jul-09 10:02
molesworth18-Jul-09 10:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.