Releasing AVI file

Started by
2 comments, last by Kippesoep 19 years, 2 months ago
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.
Advertisement
Use this order of operations:
AVIFileInitAVIFileOpen...AVIFileReleaseAVIFileExit
Kippesoep
If, for instance, I have 100 frames in my movie, Do I have to release it 100 times ??? decreasing the counter to zero ??
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.
Kippesoep

This topic is closed to new replies.

Advertisement