Click here to Skip to main content
15,891,529 members
Home / Discussions / C#
   

C#

 
AnswerRe: StreamReader Pin
Dr.Walt Fair, PE2-Mar-10 4:46
professionalDr.Walt Fair, PE2-Mar-10 4:46 
AnswerRe: StreamReader Pin
V.1-Mar-10 20:01
professionalV.1-Mar-10 20:01 
AnswerRe: StreamReader Pin
carlecomm2-Mar-10 17:57
carlecomm2-Mar-10 17:57 
QuestionSpeechSynthesizer memory leak Pin
FocusedWolf1-Mar-10 16:16
FocusedWolf1-Mar-10 16:16 
AnswerRe: SpeechSynthesizer memory leak Pin
Dave Kreskowiak1-Mar-10 19:10
mveDave Kreskowiak1-Mar-10 19:10 
GeneralRe: SpeechSynthesizer memory leak Pin
FocusedWolf2-Mar-10 1:46
FocusedWolf2-Mar-10 1:46 
GeneralRe: SpeechSynthesizer memory leak Pin
Dave Kreskowiak2-Mar-10 13:04
mveDave Kreskowiak2-Mar-10 13:04 
GeneralRe: SpeechSynthesizer memory leak Pin
FocusedWolf3-Mar-10 18:12
FocusedWolf3-Mar-10 18:12 
No i didn't write that code... it's just a random google result from searching for other people experiencing this problem.

Anyway recently i changed the code to just use the class the way people would expect to use it (i.e. no hacky tricks to fight the memory leak) and the memory consumption was about 400 kb/s.

Some things you can try to see the effect is give the reader a few pages of words to read, and set the Rate property to some number like 7 or 10. Subscribing to these events may also be a factor (SpeakCompleted and SpeakProgress).

I've noticed that if i just let the program go then it will get to the point of holding about 40-50 mb of ram where it almost stops allocating, and a few minutes later it will get a few more mb. So i'm wondering if this is a true memory leak or by design (i.e. if it has to read a lot then it allocates all this memory). However one thing i notice is when it finished reading, it doesn't flush the memory because the program is still holding onto 46 mb.
GeneralRe: SpeechSynthesizer memory leak Pin
Dave Kreskowiak4-Mar-10 1:33
mveDave Kreskowiak4-Mar-10 1:33 
AnswerRe: SpeechSynthesizer memory leak Pin
DudeFX55714-Mar-10 18:42
DudeFX55714-Mar-10 18:42 
QuestionScroll synchronization of two RichTextBox controls Pin
hain1-Mar-10 13:34
hain1-Mar-10 13:34 
AnswerRe: Scroll synchronization of two RichTextBox controls Pin
April Fans1-Mar-10 15:48
April Fans1-Mar-10 15:48 
AnswerRe: Scroll synchronization of two RichTextBox controls Pin
AspDotNetDev1-Mar-10 15:59
protectorAspDotNetDev1-Mar-10 15:59 
Questionif statement? Pin
Iman Mohtashemi1-Mar-10 9:36
Iman Mohtashemi1-Mar-10 9:36 
AnswerRe: if statement? Pin
DaveyM691-Mar-10 11:25
professionalDaveyM691-Mar-10 11:25 
Questionis it possible to do this? Pin
tonyonlinux1-Mar-10 9:13
tonyonlinux1-Mar-10 9:13 
AnswerRe: is it possible to do this? Pin
Saksida Bojan1-Mar-10 9:49
Saksida Bojan1-Mar-10 9:49 
AnswerRe: is it possible to do this? Pin
Luc Pattyn1-Mar-10 9:54
sitebuilderLuc Pattyn1-Mar-10 9:54 
AnswerRe: is it possible to do this? Pin
Dan Mos1-Mar-10 12:32
Dan Mos1-Mar-10 12:32 
GeneralRe: is it possible to do this? Pin
tonyonlinux1-Mar-10 13:36
tonyonlinux1-Mar-10 13:36 
GeneralRe: is it possible to do this? Pin
tonyonlinux1-Mar-10 15:30
tonyonlinux1-Mar-10 15:30 
GeneralRe: is it possible to do this? Pin
Dan Mos2-Mar-10 1:25
Dan Mos2-Mar-10 1:25 
Questionconnect to a mysql database w/out using mysql connector??? Pin
andyxfun1-Mar-10 7:58
andyxfun1-Mar-10 7:58 
AnswerRe: connect to a mysql database w/out using mysql connector??? Pin
snorkie1-Mar-10 8:17
professionalsnorkie1-Mar-10 8:17 
AnswerRe: connect to a mysql database w/out using mysql connector??? Pin
Saksida Bojan1-Mar-10 8:24
Saksida Bojan1-Mar-10 8: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.