spartacchio
06-05-2008, 07:22 AM
ok,now i'm trying to program a cicle that (every 700mS) turn on my f.ex. kikON and than turn on my kikOFF.
This is an example(sry but i'm at work and i haven't all my projects).
----clock() is my time function----
const int MAX=10000;
int i=1;
do{
i++;
if(i%2) <----when i is pair KikON else KikOFF
{
kikON();
sleep(700);
}
else
kikOFF();
}
while(i=MAX);
when i try to run this part of program my trainer crash(or better it use 45% of my CPU and BLOCK itself)?
i try also with a FOR cicle but same way.
exist a better way to do this?
why my trainer "crash"?
can i make less detectable my trainer following this way? (NOW pb kik me every 2 mins for "key loss package")
THx for eventually help!!
Spartacchio
This is an example(sry but i'm at work and i haven't all my projects).
----clock() is my time function----
const int MAX=10000;
int i=1;
do{
i++;
if(i%2) <----when i is pair KikON else KikOFF
{
kikON();
sleep(700);
}
else
kikOFF();
}
while(i=MAX);
when i try to run this part of program my trainer crash(or better it use 45% of my CPU and BLOCK itself)?
i try also with a FOR cicle but same way.
exist a better way to do this?
why my trainer "crash"?
can i make less detectable my trainer following this way? (NOW pb kik me every 2 mins for "key loss package")
THx for eventually help!!
Spartacchio