SCSI command release mode problem
-
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
-
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
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
-
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
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
-
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
-
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.