Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to find an entry point named 'imaqCreateImage' in DLL ...

Firstly some background:

Using Microsoft's managed extensibility framework (MEF), I've created a "Test Tool" framework which accepts plugins. The plugins are generally HW drivers with UIs. I created a NI Vision plugin  which does camera discovery, acquisition and image processing. All functionality is exposed via a UI and public methods. The  "Test Tool" framework shows the plugin UIs in docking panels (same VS docking panels) and provides a scripting interface for the plugin's public methods. 

 

Ok, now the problem:

At runtime for the "Test Tool" framework and plugin I get "Unable to find an entry point named 'imaqCreateImage' in DLL ...". After a quick debug: the exception is thrown when instantiating the Imageviewer control in NI Vision plugin UI.

 

I created a plugin test environment which simply references the plugin and adds the plugin's UI to a form. This works correctly at runtime.

 

In addition, if I remove the  Imageviewer controls from the plugin, it works correctly at runtime in the "Test Tool" framework.

 

 

 

 

0 Kudos
Message 1 of 3
(4,757 Views)

Correction:

 

Removing the  Imageviewer controls from the plugin allows the "Test Tool" framework to display the plugin's UI but any function/method call instantiating a visionimage throws the same exception.

0 Kudos
Message 2 of 3
(4,747 Views)

Have you tried ensuring that the DLL function is actually being exported? You might check out some other forums as this problem has more to do with calling our DLL than the DLL its self. I've found a few other instances of this issue on external forums but I couldn't find any internal resources as you're doing something outside the scope of the intended functionality.

 

http://stackoverflow.com/questions/653178/unable-to-find-an-entry-point-named-function-in-dll-c-to-c...

http://stackoverflow.com/questions/13882304/unable-to-find-an-entry-point-named

Rob B
FlexRIO Product Manager
0 Kudos
Message 3 of 3
(4,723 Views)