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

C#

 
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 
GeneralRe: SpeechSynthesizer memory leak Pin
Dave Kreskowiak2-Mar-10 13:04
mveDave Kreskowiak2-Mar-10 13:04 
FocusedWolf wrote:
Sorry i thought everyone knew about this


I do. But since Microsoft isn't the only vendor for speech synthesis software, I like to make sure which library we're talking about.


FocusedWolf wrote:
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:


I didn't use the code you linked to, but I wrote my own app and couldn't come up with a memory leak. I'm assuming the code you linked to is yours. It's written kind of funny. I'd skip destroying and creating a new synth every time you want to say something and go back to creating a single synth object you can use at any time. I'm not seeing the problem you're talking about in my code and can't find any reference to any kind of memory leak anywhere on the web.

A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008
But no longer in 2009...




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 
AnswerRe: connect to a mysql database w/out using mysql connector??? Pin
snorkie1-Mar-10 8:17
professionalsnorkie1-Mar-10 8:17 

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.