cancel
Showing results for 
Search instead for 
Did you mean: 

DDC_CreateFile Unexpected Error

SOLVED
skykeeper
Member
Solved!

DDC_CreateFile Unexpected Error

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.

11 REPLIES 11
D_Biel
Active Participant

Re: DDC_CreateFile Unexpected Error

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
skykeeper
Member

Re: DDC_CreateFile Unexpected Error

No, this is 32 bit system.

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

 

Thanks.

D_Biel
Active Participant

Re: DDC_CreateFile Unexpected Error

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
skykeeper
Member

Re: DDC_CreateFile Unexpected Error

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.

 

tstanley
Active Participant

Re: DDC_CreateFile Unexpected Error

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.  

Highlighted
D_Biel
Active Participant

Re: DDC_CreateFile Unexpected Error

Message contains a hyperlink

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
skykeeper
Member

Re: DDC_CreateFile Unexpected Error

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.

 

skykeeper
Member

Re: DDC_CreateFile Unexpected Error

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

D_Biel
Active Participant

Re: DDC_CreateFile Unexpected Error

Message contains a hyperlink

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