LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

_crt_debugger_hook exported from my DLL?

Why does this function show up as being declared for export but it's not in my type library for my DLL?

 

There is no function named _crt_debugger_hook  in my DLL so of course I didn't make a function window for it in an fp file so it would be included in the type library for the dll.

 

I do have a DllMain that's not exported, and I have a DLLEntryPoint function for Borland compatability that's not exported, and I have a DLLGetVersion function that's exported but not in the type library (I guess I could put it in the type library but it's supposed to be dynamically linked by the client code).

 

What is this thing?  I've never seen it before and I've made lots of DLL's with CVI.

 

I am using CVI 9.1 (CVI 2009)

 

Menchar

0 Kudos
Message 1 of 7
(5,375 Views)

Hi Menchar,

 

I was able to reproduce this behavior.  It seems that when you include toolbox.h and have Exports setting set to export "Symbols marked for export" you'll get the _crt_debugger_hook exported.  I'll file a Corrective Action Report and post again with the number in case you're interested in the status of the fix in the future.

 

Cheers, 

 

Message 2 of 7
(5,335 Views)

Yup, that's what I am doing, symbols marked for export and I'm using functions in the toolbox.fp so I've included toolbox.h.  Guess I could have told you this but didn't know to give you this info.

 

Is this benign?  The error complains that the function's being exported but that I haven't included a front panel for it to make the type library.

 

It would seem exporting an unused function that's not in the type library shouldn't cause any problems.

 

Menchar

0 Kudos
Message 3 of 7
(5,330 Views)

Hi Michael,

 

about a month ago Luis promised to have this bug list publicly available soon... May be you could post again not only with the report number but also with a link to this list - would be great!

0 Kudos
Message 4 of 7
(5,319 Views)

Hey Wolfgang,

 

I'm actually working on that list as we speak, but it could be another little while.  It's a lot of information for me to wade through and generate public content for, but I'm moving as quickly as I can on it.  I'll post to the forums when I push it live.

 

NickB

National Instruments 

0 Kudos
Message 5 of 7
(5,302 Views)
Nice to hear - I'll wait patiently 🙂
0 Kudos
Message 6 of 7
(5,299 Views)

Hey all,

 

The CAR ID for this particular issue is 215992.  When new versions are released, a bug fix list is included and you can check there for this ID.

 

Cheers, 

 

0 Kudos
Message 7 of 7
(5,264 Views)