Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Application crashes when build it as MFC in a Static Library

Application crashes when build it as MFC in a Static Library

Scheduled Pinned Locked Moved C / C++ / MFC
c++workspace
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zahid_ash
    wrote on last edited by
    #1

    Hi, My application is running fine , When Active Configuration is Win32Release and Project->Setting are "Use MFC in a Shared DLL" but it crashes when Active Sonfiguration is same Win32Release but change the Project->Setting to "Use MFC in a Static Library" it crashes at following code. m_pListenSock is an object of CSock class which is inherited from CSocket class. UINTCServerHandler::OnMsgStart(WPARAM wp, LPARAM lp) { m_pListenSock = new CSock(); m_pListenSock->Create (200); // It crashes at Create call m_pListenSock->Listen (); return 1; } Regard

    D 1 Reply Last reply
    0
    • Z zahid_ash

      Hi, My application is running fine , When Active Configuration is Win32Release and Project->Setting are "Use MFC in a Shared DLL" but it crashes when Active Sonfiguration is same Win32Release but change the Project->Setting to "Use MFC in a Static Library" it crashes at following code. m_pListenSock is an object of CSock class which is inherited from CSocket class. UINTCServerHandler::OnMsgStart(WPARAM wp, LPARAM lp) { m_pListenSock = new CSock(); m_pListenSock->Create (200); // It crashes at Create call m_pListenSock->Listen (); return 1; } Regard

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      So have you stepped into the call to Create() to find the offending statement?


      "The largest fire starts but with the smallest spark." - David Crow

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups