Click here to Skip to main content
15,894,646 members
Home / Discussions / C#
   

C#

 
AnswerRe: GC and memory Pin
Dave Kreskowiak14-Jul-13 3:37
mveDave Kreskowiak14-Jul-13 3:37 
GeneralRe: GC and memory Pin
Mehdi Gholam14-Jul-13 21:44
Mehdi Gholam14-Jul-13 21:44 
GeneralRe: GC and memory Pin
BillWoodruff25-Jul-13 1:20
professionalBillWoodruff25-Jul-13 1:20 
GeneralRe: GC and memory Pin
Dave Kreskowiak25-Jul-13 1:23
mveDave Kreskowiak25-Jul-13 1:23 
AnswerRe: GC and memory Pin
Bernhard Hiller14-Jul-13 21:35
Bernhard Hiller14-Jul-13 21:35 
AnswerRe: GC and memory Pin
Thomas Haller15-Jul-13 3:03
Thomas Haller15-Jul-13 3:03 
QuestionGUI and database synchronization Pin
leone13-Jul-13 9:28
leone13-Jul-13 9:28 
AnswerRe: GUI and database synchronization Pin
Eddy Vluggen14-Jul-13 2:53
professionalEddy Vluggen14-Jul-13 2:53 
leone wrote:
I always wonder that how to keep users' GUI updated.
You're not the first with this idea, and there's a good reason why most applications don't behave that way.

leone wrote:
I mean how a software should reflect its database fast and efficiently.
The software never loads the entire database with the user looking at the entire database. It's always a part of the data that the user looks at, and usually they work with a snapshot - not with data that changes under their cursor.

leone wrote:
I generally deal with this problem using a timer checking db every 20-30 seconds but i think it slows down my programs.
How is it implemented? Just refetching the entire dataset? That'll not only slow down your program, it'll slow down the network. How about putting a timestamp in there that holds the last modification-datetime? You could fetch that every N seconds, and fetch the data once it changes.

leone wrote:
I would prefer it like filesystemwatcher control. It realizes all files immmediately in folders and doesnt slow down applications at all.
The FSW does slow the machine down. You could put each table in a CSV file and host them from a directory - that way you could use the FSW with your data Smile | :)

OTOH, you'd lose all the benefits from having a database.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

GeneralRe: GUI and database synchronization Pin
leone14-Jul-13 22:06
leone14-Jul-13 22:06 
GeneralRe: GUI and database synchronization Pin
Eddy Vluggen15-Jul-13 0:30
professionalEddy Vluggen15-Jul-13 0:30 
AnswerRe: GUI and database synchronization Pin
Nicolás Marzoni16-Jul-13 9:44
Nicolás Marzoni16-Jul-13 9:44 
QuestionC# Using random Function Pin
Pintu Saw13-Jul-13 4:39
Pintu Saw13-Jul-13 4:39 
AnswerRe: C# Using random Function Pin
Dave Kreskowiak13-Jul-13 4:53
mveDave Kreskowiak13-Jul-13 4:53 
AnswerRe: C# Using random Function Pin
NotPolitcallyCorrect13-Jul-13 5:15
NotPolitcallyCorrect13-Jul-13 5:15 
AnswerRe: C# Using random Function Pin
harold aptroot13-Jul-13 5:52
harold aptroot13-Jul-13 5:52 
SuggestionRe: C# Using random Function Pin
Matt T Heffron15-Jul-13 8:21
professionalMatt T Heffron15-Jul-13 8:21 
GeneralRe: C# Using random Function Pin
harold aptroot15-Jul-13 8:29
harold aptroot15-Jul-13 8:29 
AnswerRe: C# Using random Function Pin
Kevin Bewley15-Jul-13 1:07
Kevin Bewley15-Jul-13 1:07 
QuestionRead Data from Access DB in ComboBox Pin
Hamed Parvini12-Jul-13 10:13
Hamed Parvini12-Jul-13 10:13 
AnswerRe: Read Data from Access DB in ComboBox Pin
Dave Kreskowiak12-Jul-13 15:05
mveDave Kreskowiak12-Jul-13 15:05 
QuestionNull array in a dictionary Pin
PozzaVecia11-Jul-13 20:42
PozzaVecia11-Jul-13 20:42 
QuestionRe: Null array in a dictionary Pin
Richard MacCutchan11-Jul-13 21:09
mveRichard MacCutchan11-Jul-13 21:09 
AnswerRe: Null array in a dictionary Pin
OriginalGriff11-Jul-13 21:10
mveOriginalGriff11-Jul-13 21:10 
GeneralRe: Null array in a dictionary Pin
PozzaVecia11-Jul-13 21:59
PozzaVecia11-Jul-13 21:59 
GeneralRe: Null array in a dictionary Pin
OriginalGriff11-Jul-13 22:24
mveOriginalGriff11-Jul-13 22:24 

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.