   The RPC server is unavailable.
  I have been trying for weeks to use the SAPI for text to speech and the whole time I've been trying to figure out why I am getting this error "The RPC server is unavailable."Here is an example of the source:CoInitialize(NULL); //Returns S_OKISpVoice * pVoice = NULL;CoCreateInstance(CLSID_SpVoice, NULL, CLSCTX_ALL, IID_ISpVoice, (void **)&pVoice);// Returns S_OKpVoice->Speak(L"Hello world", 0, NULL); // This is the line which triggers the error.Why is it doing this?!   
  Is it really an error or only a first chance exception?(I ask this because I don't see an error like that here: http://msdn.microsoft.com/en-us/library/ms719820.aspx )If it's a first chance exception, you should be able to get through if you ignore it because it's not critical. I got the same with GetOpenFileName (I guess I got it because I just didn't fill the given struct perfectly) but it works anyway.   ;Quote:Original post by snake5Is it really an error or only a first chance exception?(I ask this because I don't see an error like that here: http://msdn.microsoft.com/en-us/library/ms719820.aspx )If it's a first chance exception, you should be able to get through if you ignore it because it's not critical. I got the same with GetOpenFileName (I guess I got it because I just didn't fill the given struct perfectly) but it works anyway.Yeah you're right it was a first chance exception and when I clicked continue it spoke. Any idea what is causing it and how I can fix it?   ;  How do I tell it to ignore the first chance exception instead of braking?   ;  If you're using VC..Debug -> ExceptionsBut you'll have to write down the number of the exception (if I remember correctly, it was 0x000006BA).Then add it to the Windows exceptions with the "The RPC server is unavailable." name and uncheck it.Then save the settings (click OK) and it shouldn't come up ever again.But the source of this first chance exception is unknown to me. And to google too (I've searched ~5 times). I'll try to find out something about it. :)   