• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 263
  • Last Modified:

Error Inalid handle when play avi file

hello
I have written a program ( visual C++) to play avi file but only using  API functions and DrawDib functions . When I exit my program , I receive an error:
Invali Handle  in playvideo.ese: 0xC0008 ,.
If I delete DrawDibDraw command , my program doesn't have error.  
Can you help me ?
thanks.
0
hoatim
Asked:
hoatim
1 Solution
 
KavarCommented:
sounds like you are terminating threads in the wrong order, make sure you release / close the DrawDibDraw handle before your prog exits
0
 
hoatimAuthor Commented:
Thank you to Kavar .

 Would you mind helping me play audio stream in avi file ? . I don't know how to process audio stream .
Thanks!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now