flat assembler
Message board for the users of flat assembler.

Index > Windows > [solved] COM and threads

Author
Thread Post new topic Reply to topic
Overclick



Joined: 11 Jul 2020
Posts: 512
Location: Ukraine
Overclick
Hi
My threads calls IAudioCapture(Render)Client methods in query. Some of methods returns AUDCLNT_E_NOT_INITIALIZED.
They don't call methods at same time. I think they worked before (sound was ok), but stopped after some cosmetic modifications. One thread too choppy for that job. Only main thread initialise all COM stuff, creates additional threads and doing the same job with them until they needed. Have I initialise all of COM stuff for each thread separately or how to prevent that error?


Last edited by Overclick on 14 May 2021, 21:12; edited 1 time in total
Post 14 May 2021, 14:17
View user's profile Send private message Visit poster's website Reply with quote
Overclick



Joined: 11 Jul 2020
Posts: 512
Location: Ukraine
Overclick
I reconstructed thread call process and engine works again. WTF? I have to sleep some day...
Sorry for disturbing.
Post 14 May 2021, 21:11
View user's profile Send private message Visit poster's website Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 10749
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 0010456
sleepsleep
most of the time, you will self discovered the solution after you posted the problem,
Post 15 May 2021, 11:28
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1220
Roman
more sleep sleep
Post 16 May 2021, 08:25
View user's profile Send private message Reply with quote
Overclick



Joined: 11 Jul 2020
Posts: 512
Location: Ukraine
Overclick
I did ))
Reconstructed my engine again.
It is beautiful


Description:
Filesize: 3.14 KB
Viewed: 2217 Time(s)

Capture.PNG


Post 16 May 2021, 13:22
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.