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. General Programming
  3. C / C++ / MFC
  4. SCSI command release mode problem

SCSI command release mode problem

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++debuggingtutorialquestion
5 Posts 4 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.
  • A Offline
    A Offline
    Abinash Mohanty
    wrote on last edited by
    #1

    Hi All, I have developed an application in MFC that is showing the SMART values of SCSI hard disk with the help of scsi commands.The scsi commands needs a dll named wnaspi32.dll(Adaptec) and sys file named aspi32.sys(Adaptec) for building the ASPI layer in Windows XP operating system.Its working well in Debug mode but it fails in Release mode.Can anybody please tell me how to make it run successfully in Release mode or any other way to implement scsi commands? Thanks Abinash Mohanty

    D L G 3 Replies Last reply
    0
    • A Abinash Mohanty

      Hi All, I have developed an application in MFC that is showing the SMART values of SCSI hard disk with the help of scsi commands.The scsi commands needs a dll named wnaspi32.dll(Adaptec) and sys file named aspi32.sys(Adaptec) for building the ASPI layer in Windows XP operating system.Its working well in Debug mode but it fails in Release mode.Can anybody please tell me how to make it run successfully in Release mode or any other way to implement scsi commands? Thanks Abinash Mohanty

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

      Abinash Mohanty wrote:

      Its working well in Debug mode but it fails in Release mode.Can anybody please tell me how to make it run successfully in Release mode or any other way to implement scsi commands?

      Highly unlikely since you've failed to isolate and describe the problem. At a minimum, I suggest reading here.

      "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      1 Reply Last reply
      0
      • A Abinash Mohanty

        Hi All, I have developed an application in MFC that is showing the SMART values of SCSI hard disk with the help of scsi commands.The scsi commands needs a dll named wnaspi32.dll(Adaptec) and sys file named aspi32.sys(Adaptec) for building the ASPI layer in Windows XP operating system.Its working well in Debug mode but it fails in Release mode.Can anybody please tell me how to make it run successfully in Release mode or any other way to implement scsi commands? Thanks Abinash Mohanty

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Abinash Mohanty wrote:

        Its working well in Debug mode but it fails in Release mod

        This type of thing is very common and has even happened to me a few times. It may be an uninitialized local variable being initialized to 0xccccccc and works great in Debug mode. In Release mode perhaps a check for NULL may be the cause of the problem. There are many other reasons why this could be occuring. You should probably begin by reading the article by Dr. Newcomer. Surviving the Release Version[^] You could also spy on the SCSI bus and check if your commands are reaching the target. Good Luck, -David Delaune

        1 Reply Last reply
        0
        • A Abinash Mohanty

          Hi All, I have developed an application in MFC that is showing the SMART values of SCSI hard disk with the help of scsi commands.The scsi commands needs a dll named wnaspi32.dll(Adaptec) and sys file named aspi32.sys(Adaptec) for building the ASPI layer in Windows XP operating system.Its working well in Debug mode but it fails in Release mode.Can anybody please tell me how to make it run successfully in Release mode or any other way to implement scsi commands? Thanks Abinash Mohanty

          G Offline
          G Offline
          Glamar
          wrote on last edited by
          #4

          1. Check the C++ head file include path are there in Project Property Setting. 2. Check the *.lib file added in Project Property Setting. 3. Clean the Build first. 4. Rebuild full project again.

          G 1 Reply Last reply
          0
          • G Glamar

            1. Check the C++ head file include path are there in Project Property Setting. 2. Check the *.lib file added in Project Property Setting. 3. Clean the Build first. 4. Rebuild full project again.

            G Offline
            G Offline
            Glamar
            wrote on last edited by
            #5

            1. Check the header file path included are there in Project Property Setting. 2. Check the *.lib and *.dll files added in Project Property Setting. 3. Clean the Build first. 4. Rebuild full project again. Regards GS

            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