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

.NET (Core and Framework)

 
GeneralRe: Remote SQLServer Connection in .NET Pin
Colin Angus Mackay20-Sep-04 1:59
MemberColin Angus Mackay20-Sep-04 1:59 
GeneralRe: Remote SQLServer Connection in .NET Pin
Sendilkumar.M20-Sep-04 2:17
MemberSendilkumar.M20-Sep-04 2:17 
GeneralRe: Remote SQLServer Connection in .NET Pin
Colin Angus Mackay20-Sep-04 2:42
MemberColin Angus Mackay20-Sep-04 2:42 
GeneralRe: Remote SQLServer Connection in .NET Pin
Sendilkumar.M20-Sep-04 17:50
MemberSendilkumar.M20-Sep-04 17:50 
GeneralThread Safe Pin
Sendilkumar.M19-Sep-04 19:34
MemberSendilkumar.M19-Sep-04 19:34 
GeneralRe: Thread Safe Pin
mav.northwind19-Sep-04 22:24
Membermav.northwind19-Sep-04 22:24 
GeneralRe: Thread Safe Pin
Sendilkumar.M20-Sep-04 2:19
MemberSendilkumar.M20-Sep-04 2:19 
GeneralRe: Thread Safe Pin
mav.northwind20-Sep-04 23:40
Membermav.northwind20-Sep-04 23:40 
Smile | :) you're welcome.

The problem with threads is that it's very easy to forget that they're there...

Recently I've stumbled across a problem where a customer called and complained about an error message in on of my programs saying that an enumeration cannot be modified within a foreach loop.

I was completely stumped because I had taken explicit care that I'm not removing items from a hashtable I was working with in a foreach, but still this error occurred.

After a while it dawned on me: I had a timer that was checking the entries in the hashtable and this function worked flawless. But I also had a FileSystemWatcher set up that was adding entries to the hashtable. And when this occurred just when the timer callback was running this error occurred. Frown | :(

Luckily, putting a lock(_myHashtable) { ... } here and there solved the problem quickly.

mav
GeneralManaging User Accounts and Gruops at Runtime Pin
joaoPaulo17-Sep-04 2:09
MemberjoaoPaulo17-Sep-04 2:09 
GeneralRe: Managing User Accounts and Gruops at Runtime Pin
Anonymous17-Sep-04 12:14
MemberAnonymous17-Sep-04 12:14 
GeneralUsing Windows XP Visual Styles Pin
aninddroy16-Sep-04 23:24
Memberaninddroy16-Sep-04 23:24 
QuestionHow does .net runtime bind an assembly at runtime Pin
pgupta808016-Sep-04 21:30
Memberpgupta808016-Sep-04 21:30 
AnswerRe: How does .net runtime bind an assembly at runtime Pin
sukesh.g19-Sep-04 20:42
Membersukesh.g19-Sep-04 20:42 
General.NET Remoting hosted in IIS Pin
be kunkun16-Sep-04 20:01
Memberbe kunkun16-Sep-04 20:01 
GeneralIrregular shaped forms Pin
loewe19876516-Sep-04 19:20
Memberloewe19876516-Sep-04 19:20 
GeneralAuthorization and Profile Application Blocks Pin
nkiran15-Sep-04 18:57
Membernkiran15-Sep-04 18:57 
GeneralStrangest bug I think I've seen Pin
darrellp15-Sep-04 5:52
Memberdarrellp15-Sep-04 5:52 
GeneralRe: Strangest bug I think I've seen Pin
Anonymous15-Sep-04 6:49
MemberAnonymous15-Sep-04 6:49 
GeneralApplication Protection Pin
Member 132035214-Sep-04 22:18
MemberMember 132035214-Sep-04 22:18 
GeneralActiveX problem Pin
archetype14-Sep-04 1:36
Memberarchetype14-Sep-04 1:36 
Generalcharts in visual c++ Pin
dana_krycek14-Sep-04 1:35
Memberdana_krycek14-Sep-04 1:35 
GeneralRe: charts in visual c++ Pin
ursus zeta15-Sep-04 13:51
Memberursus zeta15-Sep-04 13:51 
GeneralRe: charts in visual c++ Pin
dana_krycek16-Sep-04 8:24
Memberdana_krycek16-Sep-04 8:24 
GeneralSorry for not Replying Pin
ursus zeta22-Sep-04 11:51
Memberursus zeta22-Sep-04 11:51 
Generalhelp in list view control Pin
bora3ee13-Sep-04 9:51
Memberbora3ee13-Sep-04 9:51 

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.