Click here to Skip to main content
15,880,608 members
Home / Discussions / C#
   

C#

 
AnswerRe: WHY THIS CODE RETURNS ERROR Pin
DaveyM6921-Oct-09 0:36
professionalDaveyM6921-Oct-09 0:36 
Questioncustom headers in email Pin
nirmalsat20-Oct-09 23:47
nirmalsat20-Oct-09 23:47 
AnswerRe: custom headers in email Pin
Christian Graus21-Oct-09 0:00
protectorChristian Graus21-Oct-09 0:00 
GeneralRe: custom headers in email Pin
J4amieC21-Oct-09 0:09
J4amieC21-Oct-09 0:09 
GeneralRe: custom headers in email Pin
Eddy Vluggen21-Oct-09 0:10
professionalEddy Vluggen21-Oct-09 0:10 
AnswerRe: custom headers in email Pin
J4amieC21-Oct-09 0:10
J4amieC21-Oct-09 0:10 
GeneralRe: custom headers in email Pin
nirmalsat21-Oct-09 19:38
nirmalsat21-Oct-09 19:38 
QuestionSuggestion about a data structure Pin
Siddhartha S.20-Oct-09 23:45
Siddhartha S.20-Oct-09 23:45 
Hi there,

I have a situtation, I am on my way to build an alarm application which will run in the background and will intimate the user for an event which he had set before. Exactly what a scheduler or alarm clock does.
I will explain the design in short here. I maintain the tasks set by the user in a list of "Task" class. With every tick of the timer I initiate a background thread that will poll the task list to check if there are any tasks for the present time stamp. If yes it will raise an event which does the work of intimating the user by playing a music and displaying a form.
The, back ground thread is needed so that the main thread does not have to wait for the scanning of the list.
So far so good. The application is working well. But I know at heart that the List is not a good thing to use in this case as the application will terribly fail if the list is too long. may be the user will be intimated 2-3 mins after the time he may had set his alarm to.
I request for suggestions about which data structure to use here, if not list. I know there are some very fast list like structures (Like something used by the word suggesting thread of the MS Word, as it can pick up words from huge ocean of words.). However I dont know what they are and how to use them. If you suggest a design change, I whole heartedly shall agree. I know it is not a very good design.
Sincerely looking for your suggestions.

Best Regards,
Sid

AnswerRe: Suggestion about a data structure Pin
Luc Pattyn21-Oct-09 2:40
sitebuilderLuc Pattyn21-Oct-09 2:40 
GeneralRe: Suggestion about a data structure Pin
Siddhartha S.21-Oct-09 2:45
Siddhartha S.21-Oct-09 2:45 
GeneralRe: Suggestion about a data structure Pin
Luc Pattyn21-Oct-09 2:53
sitebuilderLuc Pattyn21-Oct-09 2:53 
GeneralRe: Suggestion about a data structure Pin
Siddhartha S.21-Oct-09 2:55
Siddhartha S.21-Oct-09 2:55 
QuestionWindows Identity of the currently logged in user Pin
ramz_g20-Oct-09 22:23
ramz_g20-Oct-09 22:23 
AnswerRe: Windows Identity of the currently logged in user Pin
stancrm20-Oct-09 22:31
stancrm20-Oct-09 22:31 
GeneralRe: Windows Identity of the currently logged in user Pin
ramz_g20-Oct-09 23:11
ramz_g20-Oct-09 23:11 
AnswerRe: Windows Identity of the currently logged in user Pin
Eddy Vluggen20-Oct-09 23:40
professionalEddy Vluggen20-Oct-09 23:40 
GeneralRe: Windows Identity of the currently logged in user Pin
ramz_g21-Oct-09 2:05
ramz_g21-Oct-09 2:05 
GeneralRe: Windows Identity of the currently logged in user Pin
Eddy Vluggen21-Oct-09 3:18
professionalEddy Vluggen21-Oct-09 3:18 
GeneralRe: Windows Identity of the currently logged in user Pin
ramz_g21-Oct-09 19:15
ramz_g21-Oct-09 19:15 
QuestionSafe Parallel loops Pin
tvbarnard20-Oct-09 21:49
tvbarnard20-Oct-09 21:49 
AnswerRe: Safe Parallel loops Pin
stancrm20-Oct-09 22:27
stancrm20-Oct-09 22:27 
GeneralRe: Safe Parallel loops Pin
tvbarnard20-Oct-09 22:44
tvbarnard20-Oct-09 22:44 
GeneralRe: Safe Parallel loops Pin
stancrm20-Oct-09 22:55
stancrm20-Oct-09 22:55 
GeneralRe: Safe Parallel loops Pin
tvbarnard20-Oct-09 23:06
tvbarnard20-Oct-09 23:06 
AnswerRe: Safe Parallel loops [modified] Pin
Hristo-Bojilov20-Oct-09 22:38
Hristo-Bojilov20-Oct-09 22:38 

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.