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
  1. Home
  2. The Lounge
  3. Vendors and different types of libraries

Vendors and different types of libraries

Scheduled Pinned Locked Moved The Lounge
debuggingquestionannouncementperformancehelp
4 Posts 3 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.
  • I Offline
    I Offline
    Igor Proskuriakov
    wrote on last edited by
    #1

    Hello there, I am trying to make some vendorto provide a library which uses not only release version of mutithreaded CRT, but debug multithreaded DLL as well. My main problem so far is using it with Rational Purify: first it complains about two CRTs in use and sometimes it complains about memory leaks, but it is hard to trace them. Do you think that it is sensible? (to ask vendor for debug version) Have you also done it for your projects, what is your experience with such issues? Thanks! Igor Proskuriakov

    C N I 3 Replies Last reply
    0
    • I Igor Proskuriakov

      Hello there, I am trying to make some vendorto provide a library which uses not only release version of mutithreaded CRT, but debug multithreaded DLL as well. My main problem so far is using it with Rational Purify: first it complains about two CRTs in use and sometimes it complains about memory leaks, but it is hard to trace them. Do you think that it is sensible? (to ask vendor for debug version) Have you also done it for your projects, what is your experience with such issues? Thanks! Igor Proskuriakov

      C Offline
      C Offline
      Christopher Duncan
      wrote on last edited by
      #2

      Igor Proskuriakov wrote: Do you think that it is sensible? (to ask vendor for debug version) Well, when you're asking for the ability to debug someone else's code, you're asking them to open the door to their intellectual property, and while some companies do provide source code with their stuff, others are afraid their work will be stolen and duplicated. My guess is that if a company doesn't provide source with their libraries, you're gonna have a tough time getting a debug build from them. Chistopher Duncan Author - The Career Programmer: Guerilla Tactics for an Imperfect World (Apress)

      1 Reply Last reply
      0
      • I Igor Proskuriakov

        Hello there, I am trying to make some vendorto provide a library which uses not only release version of mutithreaded CRT, but debug multithreaded DLL as well. My main problem so far is using it with Rational Purify: first it complains about two CRTs in use and sometimes it complains about memory leaks, but it is hard to trace them. Do you think that it is sensible? (to ask vendor for debug version) Have you also done it for your projects, what is your experience with such issues? Thanks! Igor Proskuriakov

        N Offline
        N Offline
        Navin
        wrote on last edited by
        #3

        I guess you do not have the source code to this library, just a DLL (and maybe a header file or something)? If that's the case, good luck. :) Your other options are: 1. Ignore the Purify errors for that DLL. IIRC, there are ways in Purify, BoundsChecker, etc., to tell them not to show errors for a particular DLL. (I've had to do this with system DLLs/functions...) 2. Use a different library - one that comes with source code. :-D "Time spent with cats is never wasted." - Colette

        1 Reply Last reply
        0
        • I Igor Proskuriakov

          Hello there, I am trying to make some vendorto provide a library which uses not only release version of mutithreaded CRT, but debug multithreaded DLL as well. My main problem so far is using it with Rational Purify: first it complains about two CRTs in use and sometimes it complains about memory leaks, but it is hard to trace them. Do you think that it is sensible? (to ask vendor for debug version) Have you also done it for your projects, what is your experience with such issues? Thanks! Igor Proskuriakov

          I Offline
          I Offline
          Igor Proskuriakov
          wrote on last edited by
          #4

          Just to clarify a few points. I am getting static library from vendor and the thing is: I do not really want to debug vendor's code, but I just want to separate my bugs from vendor's ones. It looks to me that Purify often reports memory leaks because we are using different CRTs. To simplify a problem: I am freeing memory allocated with release version of opertor new, using debug version of delete. But if I switch to release version of CRT, I cannot use Purify, so I cannot really tell if there are bugs :-( Igor Proskuriakov

          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