Click here to Skip to main content
15,893,508 members
Home / Discussions / C#
   

C#

 
Questionto retrieve position Pin
narchans4u1-Mar-10 19:04
narchans4u1-Mar-10 19:04 
AnswerRe: to retrieve position Pin
Programm3r1-Mar-10 19:36
Programm3r1-Mar-10 19:36 
Questiondata and picker control in winforms using c3.net Pin
Ch.Gayatri Subudhi1-Mar-10 17:36
Ch.Gayatri Subudhi1-Mar-10 17:36 
AnswerRe: data and picker control in winforms using c3.net Pin
rah_sin1-Mar-10 19:25
professionalrah_sin1-Mar-10 19:25 
Questiontry catch in C# Pin
jojoba20111-Mar-10 17:17
jojoba20111-Mar-10 17:17 
AnswerRe: try catch in C# Pin
Nematjon Rahmanov1-Mar-10 19:13
Nematjon Rahmanov1-Mar-10 19:13 
AnswerRe: try catch in C# Pin
Dave Kreskowiak1-Mar-10 19:14
mveDave Kreskowiak1-Mar-10 19:14 
QuestionRe: try catch in C# Pin
jojoba20111-Mar-10 19:24
jojoba20111-Mar-10 19:24 
AnswerRe: try catch in C# Pin
N a v a n e e t h1-Mar-10 20:12
N a v a n e e t h1-Mar-10 20:12 
AnswerRe: try catch in C# Pin
Richard MacCutchan1-Mar-10 22:28
mveRichard MacCutchan1-Mar-10 22:28 
AnswerRe: try catch in C# Pin
PIEBALDconsult2-Mar-10 4:08
mvePIEBALDconsult2-Mar-10 4:08 
AnswerRe: try catch in C# Pin
carlecomm2-Mar-10 17:36
carlecomm2-Mar-10 17:36 
QuestionStreamReader Pin
jojoba20111-Mar-10 17:01
jojoba20111-Mar-10 17:01 
AnswerRe: StreamReader Pin
Dr.Walt Fair, PE1-Mar-10 17:49
professionalDr.Walt Fair, PE1-Mar-10 17:49 
QuestionRe: StreamReader Pin
jojoba20111-Mar-10 18:01
jojoba20111-Mar-10 18:01 
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 

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.