Error -1074396005 When Using the IMAQ AVI Functions

Updated Apr 10, 2018

Reported In

Software

  • Vision Development Module

Driver

  • NI-IMAQ

Issue Details

My application is using the IMAQ AVI functions to write a AVI file to disc. Currently, when I try to run my application I receive error -1074396005 and the file is not properly created or is empty. How can I resolve this problem to ensure my AVI file is properly created?
 

Solution

This error occurs when the AVI Refnum representing your AVI file session is either incorrect or not a refnum. There are a number of causes for this, but in general the following steps will help you narrow down the issue.
  • Make sure that the reference is not being closed elsewhere while you are still trying to use it.
  • Use probes and breakpoints to check the value of the refnum as your application is being used. The refnum may be getting replaced or modified somewhere.
  • Ensure that any structures using your refnum pass the refnum through in all cases. Make sure no output tunnels are using default values, which would overwrite the refnum with an invalid value.

WAS THIS ARTICLE HELPFUL?

Not Helpful