ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Making the "G# Dependency injection using default constructor" example work in built app.

Hi,

 

I'm trying to make the G# example called "G# Dependency injection using default constructor" work after the build. The example works fine in debug mode, but after having made a built specification and built the app, it doesn't work and gives me this kind of error:

Infos sur le fichier/répertoire dans G#Object.lvclass:G#Object_GetClassType.vi->G#Object.lvclass:G#Object_GenericDefaultConstructor.vi:1->G# - DependencyInjectionUsingDefaultConstructor.vi<APPEND>
C:\temp\testDILV\Application.exe\1abvi3w\examples\AddQ\G#\CreateDestroy\MyG#SubClass_class\MyG#SubClass.lvclass

 

So it seems that he cannot find the path, but the path is given by the G#Object_GetClassPath vi, so it should be correct. It returns the path in the form C:\temp\testDILV\Application.exe\1abvi3w\examples\AddQ\G#\CreateDestroy\MyG#SubClass_class\MyG#SubClass.lvclass but G#Object_GenericDefaultConstructor doesn't seem to find it and crashes.

 

Is there something I'm doing wrong? Maybe in the build specification?

0 Kudos
Message 1 of 2
(2,590 Views)

Community thread

 

 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 2
(2,555 Views)