Ticket #62 (reopened defect)
WASAPI multi-threading issue
| Reported by: | jf_menard | Owned by: | jf_menard |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | host-api-wasapi | Version: | |
| Keywords: | Cc: |
Description
I realized WASAPI would crash my application (Access violation reading...) if I did the following quick sequence:
- Pa_OpenStream(...)
- Pa_StartStream(...)
- Pa_StopStream(...)
- Pa_CloseStream(...)
The issue arise when Stop and Close are called before the ProcThread is started by Windows. In this case, the new thread encounters a released pointer and crashes. To obtain a reliable behavior, I think we should consider that Stop and Close could be called anywhere between the start of ProcThread and the while (!stream->closeRequest).
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
