Click here to Skip to main content
15,886,582 members
Home / Discussions / C#
   

C#

 
AnswerRe: StreamReader Pin
Dr.Walt Fair, PE1-Mar-10 18:12
professionalDr.Walt Fair, PE1-Mar-10 18:12 
QuestionRe: StreamReader [modified] Pin
jojoba20111-Mar-10 19:07
jojoba20111-Mar-10 19:07 
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 
Sorry i thought everyone knew about this Smile | :)

Here's from some other people that have experienced it:

http://stackoverflow.com/questions/2204012/constant-memory-leak-in-speechsynthesizer[^]

Little translation action for this one:

http://translate.googleusercontent.com/translate_c?hl=en&sl=de&u=http://www.eggheadcafe.com/software/aspnet/34136900/memoryleak-in-speechsynth.aspx&prev=/search%3Fq%3Dspeechsynthesizer%2Bmemory%2Bleak%26hl%3Den&rurl=translate.google.com&twu=1&usg=ALkJrhhmXs1dqrvH8fgXvkgr_s4qn1wQkA[^]

To summarize the effect, the more words that the SpeechSynthesizer .net framework object has to read, the more megabytes of memory it consumes. It's not long before it's soaking up a few hundred mb. First effect, which sets on rather quickly, is the reader gets slower and slower.

I have tried various hacky attempts to dispose and create new objects, but it wasn't 100% successful (besides introduces a noticeable delay). This is from the first link:

what happens if you don't create a new SpeechSynthesizer object on each pass? – Eric Brown Feb 19 at 20:50

Eric, I tried it that way the first time through and it is actually worse. This was why I tried creating and destroying the object with each call. It did improve slightly, but still doesn't solve the issue. Any call to SpeechSynthesizer leaves behind WAVEHDR and WaveHeader objects that grows the private memory until it crashes. – DudeFX Feb 19 at 23:34

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 
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 

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.