Programming/MFC-C++

darknet mfc 연동

빠릿베짱이 2018. 9. 11. 11:51
반응형

IDE : VS2015

VS2010에서는 yolo_v2_class.hpp 때문에 오류 발생 --> 컴파일러 버전 문제 인듯


C/C++ -> Preprocessor -> Preprocessor Definitions 

_DEBUG 정의시 에러 발생


detected memory leaks!

Dumping objects ->

{752} normal block at 0x000002802E793520, 80 bytes long.

 Data: <C:\Users\Junny\D> 43 3A 5C 55 73 65 72 73 5C 4A 75 6E 6E 79 5C 44 

{751} normal block at 0x000002802E7781E0, 16 bytes long.

 Data: <  o             > B8 E2 6F A5 E4 00 00 00 00 00 00 00 00 00 00 00 

{750} normal block at 0x000002802E79D380, 96 bytes long.

 Data: <C:\Users\Junny\D> 43 3A 5C 55 73 65 72 73 5C 4A 75 6E 6E 79 5C 44 

{749} normal block at 0x000002802E7788C0, 16 bytes long.

 Data: <X o             > 58 E2 6F A5 E4 00 00 00 00 00 00 00 00 00 00 00 

{748} normal block at 0x000002802E79C7A0, 96 bytes long.

 Data: <C:\Users\Junny\D> 43 3A 5C 55 73 65 72 73 5C 4A 75 6E 6E 79 5C 44 

{747} normal block at 0x000002802E778370, 16 bytes long.

 Data: <  o             > C8 DF 6F A5 E4 00 00 00 00 00 00 00 00 00 00 00 

{746} normal block at 0x000002802E793AC0, 80 bytes long.

 Data: <C:\Users\Junny\D> 43 3A 5C 55 73 65 72 73 5C 4A 75 6E 6E 79 5C 44 

{745} normal block at 0x000002802E778000, 16 bytes long.

 Data: <  o             > 88 DF 6F A5 E4 00 00 00 00 00 00 00 00 00 00 00 

c:\users\junny\desktop\test\test\test.cpp(59) : {179} client block at 0x000002802E747950, subtype c0, 24 bytes long.

f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\dumpcont.cpp(23) : atlTraceGeneral - a CObject object at $000002802E747950, 24 bytes long

{178} client block at 0x000002802E738620, subtype c0, 392 bytes long.

f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\dumpcont.cpp(23) : atlTraceGeneral - a CObject object at $000002802E738620, 392 bytes long

f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\strcore.cpp(156) : {172} normal block at 0x000002802E75CAC0, 61 bytes long.

 Data: < f      $   $   > 20 66 06 17 FB 7F 00 00 24 00 00 00 24 00 00 00 

Object dump complete.



1.  #include "yolo_v2_class.hpp"

2. #pragma comment( lib, "yolo_cpp_dll.lib" )

3. preprocessor definitions : _DEBUG 제거

4. General Character Set -> Use Multi-Byte Character Set

5. C/C++ -> Code Generation -> Runtime library : Multi-threaded DLL (Multi-threaded Debug DLL 







반응형