Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

call labview dlls in release mode

Hi all,

 

I built a LabVIEW dll for the bluetooth connection, at the beginning I called this dll in the VS C++ in the debug mode, it worked very well.

 

but due to the application, all the code should run in release mode. Unfortunately error occured, " Runtime error, R6030 CRT not initialized".

I googled, but i did not get something useful.

 

I appreciate any comments and  information, and apologize for my poor english.

 

ps.  I tried to use different runtime library, and finially I got only multi-thread DLL was suitable.

 

 

0 Kudos
Message 1 of 7
(7,022 Views)

the attachments are the VC code and the dll files, 

I really appreciate any comments about thie problem.

Download All
0 Kudos
Message 2 of 7
(6,992 Views)

Hi,

 

Have you tried the solution posted on this forum post?

 

Rohama K.
0 Kudos
Message 3 of 7
(6,980 Views)

Hi,

 

yes, I tried this solution before. and you can find my relay on that post,

if I change the runtime library to the multi-threaded rather than multi-threaded DLL, the code can work in release mode, but I hope it work in multi-threaded dll.

 

Thanks for reply, do you have any other comments?

 

Sample

0 Kudos
Message 4 of 7
(6,974 Views)

Hi,

 

I ran your project in release mode and had it set to multi-thread DLL and I did not get the error you were getting. When I ran the code, a command window printed:

 

first print

Did not find bluetooth devices.

 

Any ideas on how I would reproduce your error?

Rohama K.
0 Kudos
Message 5 of 7
(6,966 Views)

Hi,

 

Thanks for reply and tried my project on your computer.

I dont know man, I still have  the same problems now. maybe you made some advanced setting. Let me list what setting I made in the VS,

 

in the C++>>General>>additional Include directories, I add these header files' path, the BTinit.h BTloop.h , BTend.h and the cintools folder for necessary labview header files.

 

in the Linker>>General>>additional library directories, I add these libraries' path,

 

in the Linker>>input>>Additional Dependencies, I added BTinit.lib, BTloop.lib, BTend.lib.

 

That's all. I did it in the debug mode, and it worked there.

 

Is there something different with yours?

Any further information are appreciated.

 

Sample

0 Kudos
Message 6 of 7
(6,959 Views)

Hi Sample,

 

I am using VS2010. Attached it an txt file that lists all my settings. Hope it helps.

Rohama K.
0 Kudos
Message 7 of 7
(6,952 Views)