Windows error 0x80045039, -2147200967

Detailed Error Information

SPERR_NO_MORE_ITEMS[1]

MessageWhen enumerating items, the requested index is greater than the count of items.
Declared insperror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode4 (0x004)
NameFACILITY_ITF[2][3]
DescriptionThe source of the error code is COM/OLE Interface management.[2][3]
Error Code20537 (0x5039)

Questions

1vote
0answers

Error '0x80045039' when using GetVoices method

I am getting an error "System.Runtime.InteropServices.COMException: 'Exception from HRESULT: 0x80045039'", when I use GetVoices method my code: Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim SAPI SAPI = CreateObject("SAPI.SPVoice") SAPI.voice = SAPI.GetVoices.Item(0) SAPI.Speak("hello world) End Sub when removing the following line the code works fine: API.voice = [...] read more
vb.net
text-to-speech
sapi

Comments

Leave a comment

(plain text only)

Sources

  1. sperror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx
  3. winerror.h from Windows SDK 10.0.14393.0

User contributions licensed under CC BY-SA 3.0