skip to main | skip to sidebar

Tracking of my life

2018년 1월 9일 화요일

VS2015 로 컴파일된 DLL을 XP에서 LoadLibrary 시 Access Violation 예외.

VS2015 로 컴파일된 DLL을 XP에서 LoadLibrary 시 모듈초기화단계에서 Access Violation 예외가 발생됨.
VS2015 에 도입된 Thread-safe Local Static Initialization 기능때문임.
컴파일러옵션에 "/Zc:threadSafeInit-" 을 추가하면 됨.
https://github.com/open-source-parsers/jsoncpp/issues/719
https://stackoverflow.com/questions/32517234/access-violation-on-static-initialization/32776479#32776479
https://docs.microsoft.com/en-us/cpp/build/reference/zc-threadsafeinit-thread-safe-local-static-initialization
작성자: MarunGuy 시간: 오후 10:29

댓글 없음:

댓글 쓰기

최근 게시물 이전 게시물 홈
피드 구독하기: 댓글 (Atom)

블로그 보관함

  • ►  2020 (1)
    • ►  12월 (1)
  • ▼  2018 (1)
    • ▼  1월 (1)
      • VS2015 로 컴파일된 DLL을 XP에서 LoadLibrary 시 Access Viola...
  • ►  2017 (1)
    • ►  7월 (1)
  • ►  2015 (11)
    • ►  12월 (1)
    • ►  11월 (1)
    • ►  9월 (4)
    • ►  8월 (3)
    • ►  2월 (1)
    • ►  1월 (1)
  • ►  2014 (8)
    • ►  9월 (1)
    • ►  8월 (3)
    • ►  5월 (4)
  • ►  2013 (2)
    • ►  12월 (2)
  • ►  2012 (8)
    • ►  12월 (2)
    • ►  11월 (1)
    • ►  10월 (3)
    • ►  3월 (1)
    • ►  2월 (1)
  • ►  2011 (3)
    • ►  10월 (1)
    • ►  5월 (1)
    • ►  2월 (1)
  • ►  2010 (3)
    • ►  11월 (1)
    • ►  8월 (2)
  • ►  2009 (6)
    • ►  11월 (6)

프로필

MarunGuy
전체 프로필 보기