Click here to Skip to main content
15,888,733 members
Home / Discussions / C#
   

C#

 
GeneralRe: Running application on a network mapped drive Pin
Matjaz-xyz10-May-09 22:48
Matjaz-xyz10-May-09 22:48 
GeneralRe: Running application on a network mapped drive Pin
N a v a n e e t h10-May-09 22:58
N a v a n e e t h10-May-09 22:58 
GeneralRe: Running application on a network mapped drive Pin
Eddy Vluggen11-May-09 0:01
professionalEddy Vluggen11-May-09 0:01 
GeneralRe: Running application on a network mapped drive Pin
Matjaz-xyz11-May-09 21:25
Matjaz-xyz11-May-09 21:25 
QuestionXML Serializing an Object that Inherits a List of itself Pin
Patricker10-May-09 21:35
Patricker10-May-09 21:35 
AnswerRe: XML Serializing an Object that Inherits a List of itself Pin
Webnoi29-Jun-09 10:54
Webnoi29-Jun-09 10:54 
GeneralRe: XML Serializing an Object that Inherits a List of itself Pin
Patricker29-Jun-09 13:33
Patricker29-Jun-09 13:33 
QuestionWindows Service Starts multiple threads Pin
livez10-May-09 21:25
livez10-May-09 21:25 
Hello!

I´ve created an windows service with a timer-object. My application runs a method with a given interval, which builds up strings in memory and when finished with one string sends data to our database. Problem is, my application seems to be running on several threads, which messes up the string-values I hold in memory.

I run this code in the start of the method I´ve set my timerobject to perform:

Log.Write("current threadid : " + System.Threading.Thread.CurrentThread.ManagedThreadId.ToString());


which gives me

current threadid : 4<br />
current threadid : 7<br />
current threadid : 8<br />
current threadid : 4<br />
current threadid : 7<br />
current threadid : 8<br />
current threadid : 4<br />
current threadid : 8<br />
current threadid : 7<br />
current threadid : 8


etc.

Is this how windows services work, and can I manage this behaviour somehow?
AnswerRe: Windows Service Starts multiple threads Pin
N a v a n e e t h10-May-09 22:55
N a v a n e e t h10-May-09 22:55 
AnswerRe: Windows Service Starts multiple threads Pin
Nicholas Butler10-May-09 22:57
sitebuilderNicholas Butler10-May-09 22:57 
GeneralRe: Windows Service Starts multiple threads Pin
livez10-May-09 23:00
livez10-May-09 23:00 
QuestionSearching files Pin
Rajdeep.NET is BACK10-May-09 21:13
Rajdeep.NET is BACK10-May-09 21:13 
AnswerRe: Searching files Pin
Eddy Vluggen10-May-09 21:39
professionalEddy Vluggen10-May-09 21:39 
GeneralRe: Searching files Pin
Rajdeep.NET is BACK10-May-09 21:51
Rajdeep.NET is BACK10-May-09 21:51 
GeneralRe: Searching files Pin
Eddy Vluggen10-May-09 22:18
professionalEddy Vluggen10-May-09 22:18 
GeneralRe: Searching files Pin
Rajdeep.NET is BACK10-May-09 22:46
Rajdeep.NET is BACK10-May-09 22:46 
GeneralRe: Searching files Pin
Eddy Vluggen10-May-09 22:52
professionalEddy Vluggen10-May-09 22:52 
GeneralRe: Searching files Pin
Rajdeep.NET is BACK10-May-09 23:17
Rajdeep.NET is BACK10-May-09 23:17 
AnswerRe: Searching files Pin
Vikram A Punathambekar10-May-09 22:26
Vikram A Punathambekar10-May-09 22:26 
GeneralRe: Searching files Pin
Rajdeep.NET is BACK10-May-09 22:41
Rajdeep.NET is BACK10-May-09 22:41 
GeneralRe: Searching files Pin
Vikram A Punathambekar11-May-09 2:19
Vikram A Punathambekar11-May-09 2:19 
GeneralRe: Searching files Pin
Rama Krishna Vavilala29-May-09 9:49
Rama Krishna Vavilala29-May-09 9:49 
QuestionMy windows server trace is showing error Pin
avi_dadi200210-May-09 20:58
avi_dadi200210-May-09 20:58 
QuestionC# NETWORKING PROBLEM Pin
teddy110-May-09 20:46
teddy110-May-09 20:46 
AnswerRe: C# NETWORKING PROBLEM Pin
Dave Kreskowiak11-May-09 5:01
mveDave Kreskowiak11-May-09 5:01 

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.