08-29-2012 03:35 PM
I have this function that is not working on a production system (works on development system), the error is very bogus.
DDC_CreateFile "An Unexpected Error occurred in the library."
This is the call: DDC_CreateFile (path, "", FILE_NAME, FILE_DESC, FILE_TITLE, FILE_AUTHOR, &file);
I have spent a lot of time trying to locate the root cause (not feeling so hot right now), appreciate any help.
Thanks.
Solved! Go to Solution.
08-29-2012 04:38 PM
Are you on a 64-bit system? We have had a report before that a user received this error on a 64-bit system, but we were never able to reproduce the issue. If you are using a 64-bit configuration, try using a 32-bit configuration.
Also, on the development system, do you receive the error if you switch to a release configuration?
08-29-2012 04:40 PM
No, this is 32 bit system.
Are there any requirements to use this library? a toolkit or addon?
Thanks.
08-30-2012 11:37 AM
You will need to install NI USI on your target system. We do not have a standalone installer for USI, so you will have to distribute it using a CVI distribution. You can select to include USI in your installer from the Drivers & Components tab.
08-30-2012 12:11 PM
Well, I am trying to run the sample code log.cws on the system with the problem and it gives me the same error than our code.
The sample code works on the OK system just like our code.
On both systems with CVI 8.5
I have sent MAX tech reports to apps engineer.
08-30-2012 03:51 PM
The NI-USI library has some wierd dependencies. I had the same problem with the -6204 error when calling the DDC functions on a deployed machine when the development machine had NI-USI 1.9 installed. Installing the NI License Manager on the deployment machine (which can be found in the LabView runtime engine installer, at least the 2011 version) solved the problem.
08-31-2012 02:33 PM
Hi Skykeeper,
We are also working with TStanely on another thread with a very similar issue. It is not clear yet if these two were the same issue or not. Did you have a chance to try his suggestion about License Manager? Might give us a clue if this is the same dependency issue he is having.
Let's also try getting a Process Monitor log. It's most helpful when you can get one from both the system that does work and the system that does not work so that I can compare.
09-04-2012 09:46 AM
Hello and Thank you for your reply.
I have License Manager installed on the system where this function doesn't work, the two systems have CVI full development installed same version 8.5.
09-04-2012 10:37 AM
This is the output for the process monitor, only items that were not ok.
CreateFile
C:\Program Files\National Instruments\Shared\USI\Bin\usiex.dll.2.Manifest
C:\Program Files\National Instruments\Shared\USI\Bin\usiex.dll.2.Config
NAME NOT FOUND
Desired Access: Generic Read/Execute,
Disposition: Open,
Options: Synchronous IO Non-Alert, Non-Directory File,
Attributes: n/a,
ShareMode: Read,
AllocationSize: n/a
09-04-2012 06:09 PM - edited 09-04-2012 06:10 PM
Hi Skykeeper,
I think I figured out the issue from the other thread, and the solution may be the same for you as well. Try installing the Microsoft Visual C++ 2005 Redistributable Package. For more details take a look at the thread here.