11-27-2011 02:53 PM
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.
11-28-2011 04:11 PM
the attachments are the VC code and the dll files,
I really appreciate any comments about thie problem.
11-29-2011 06:41 AM
11-29-2011 08:36 AM
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
11-30-2011 06:39 AM
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?
11-30-2011 01:38 PM
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
12-01-2011 03:58 PM
Hi Sample,
I am using VS2010. Attached it an txt file that lists all my settings. Hope it helps.