Hi All,
I made a simple example to demonstrate the problem:
#include
using namespace std;
#define MACRO1(x)\
cout << #x << "(" << (x) << ")"; \
int main()
{
int var1;
var1 = 44;
MACRO1(var1);
return 0;
}
The result of this simple example on t
Ooops made a mistake in the until... also maybe a short delay between retries
would be helpful
const
A_Day = 1;
An_Hour = A_Day/24;
A_Minute = An_Hour/60;
A_Second = A_Minute/60;
StartTime:=now;
assignFile(txt,'/mnt/test.txt');
{$I-}
rewrite (txt);
repeat
James dragged the solution a little bit away from the
"quick-and-dirty-corner".
This way it is usable also in critical situations.
SMART is a never ending story and you jump into the jungle:
* A lot of noname disk have no entry in the SMART DB
* Even a half year old Maxtor/Seagate was not fou
I thought there was a way to figure out if the drive was spun down, perhaps
with a S.M.A.R.T command?
I like the idea of using the ioResult, but I would put in a way to exit the
loop for ioReults of errors not caused by a spun down drive would report right
away and a timeout in case some other