LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

DDC_CreateFile Unexpected Error

Solved!
Go to solution

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.

0 Kudos
Message 1 of 12
(5,577 Views)

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?

National Instruments
0 Kudos
Message 2 of 12
(5,574 Views)

No, this is 32 bit system.

Are there any requirements to use this library? a toolkit or addon?

 

Thanks.

0 Kudos
Message 3 of 12
(5,573 Views)

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.

National Instruments
0 Kudos
Message 4 of 12
(5,554 Views)

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.

 

0 Kudos
Message 5 of 12
(5,549 Views)

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.  

0 Kudos
Message 6 of 12
(5,528 Views)

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.

National Instruments
0 Kudos
Message 7 of 12
(5,503 Views)

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.

 

0 Kudos
Message 8 of 12
(5,485 Views)

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

0 Kudos
Message 9 of 12
(5,476 Views)

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.

National Instruments
0 Kudos
Message 10 of 12
(5,462 Views)