• Advertisement
Sign in to follow this  

Releasing AVI file

This topic is 4760 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi. In my program I render several 3D shapes and while rendering them each frame is added to an AVI file - that's how I create a little movie. To init. the AVI file I use the function: AVIFileInit(), at the end of the movie I need to release/close the avi file otherwise it won't create it right. My question is: How do I close it right ?? I tried using the AVIFileExit() but it doesn't do the job. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
If, for instance, I have 100 frames in my movie, Do I have to release it 100 times ??? decreasing the counter to zero ??

Share this post


Link to post
Share on other sites
No, there is a reference count on the number of open handles. The file is opened using AVIFileOpen. So, match all "AVIFileOpen"s with "AVIFileRelease"s and you should be fine.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement