Click here to Skip to main content
15,902,112 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to run desktop application via http ? Pin
Eddy Vluggen10-May-09 22:13
professionalEddy Vluggen10-May-09 22:13 
GeneralRe: How to run desktop application via http ? Pin
hdv21210-May-09 22:19
hdv21210-May-09 22:19 
GeneralRe: How to run desktop application via http ? Pin
Eddy Vluggen10-May-09 22:58
professionalEddy Vluggen10-May-09 22:58 
AnswerRe: How to run desktop application via http ? Pin
N a v a n e e t h10-May-09 22:30
N a v a n e e t h10-May-09 22:30 
QuestionRunning application on a network mapped drive Pin
Matjaz-xyz10-May-09 21:35
Matjaz-xyz10-May-09 21:35 
AnswerRe: Running application on a network mapped drive Pin
N a v a n e e t h10-May-09 22:35
N a v a n e e t h10-May-09 22:35 
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 

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.