![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi everyone! Sorry for posting in this group but there's no group for v6! I need to do some actions on about 50 files. But always I get error 88(INCOMPATIBLE_MODE_ERROR) on first few ones. Then I changed the code to try as many times as needed to get a no error result. Now I always get 88 on the 1st file and operations on other files are done with no error. I know this error occures when a file is opened in 2 different modes but in my code each file is opened , processed , closed and then the next file.And all in normal mode. I'm working with Microkernel 6.15 on a single WinXP machine,not a client server system. And obviously I can't upgrade. What should I do? Can anyone help me. Thanks. |
#3
| |||
| |||
|
|
Hi everyone! Sorry for posting in this group but there's no group for v6! I need to do some actions on about 50 files. But always I get error 88(INCOMPATIBLE_MODE_ERROR) on first few ones. Then I changed the code to try as many times as needed to get a no error result. Now I always get 88 on the 1st file and operations on other files are done with no error. I know this error occures when a file is opened in 2 different modes but in my code each file is opened , processed , closed and then the next file.And all in normal mode. I'm working with Microkernel 6.15 on a single WinXP machine,not a client server system. And obviously I can't upgrade. What should I do? Can anyone help me. Thanks. |
#4
| |||
| |||
|
#5
| |||
| |||
|
#6
| |||
| |||
|
|
Hi Thank you for your answers.In fact I was disappointed. well,I disabled AV completely, nothing changed. If the files were readOnly,I think I couldn't get any results but I get NO_ERROR after some attempts. However I checked them. And this is the code.It's not readolny mode. memset(dataBuf , 0 , sizeof(dataBuf) ); memset( keyBuf, 0, sizeof( keyBuf ) ); strcpy(dataBuf , "MA48"); strcpy( (BTI_CHAR *)keyBuf, fileName ); keyNum = 0; dataLen = 5; /* open the DAT file */ i = 0; status = BTRV(B_OPEN, posBlock, dataBuf, &dataLen, keyBuf, keyNum ); while(status == 88){ fp = fopen("unLog.txt" , "a"); fprintf(fp , "%d," , i); fclose(fp); Sleep(SLEEP_TIME);//Some time this sleep reduces the wasted time in the loop status = BTRV(B_OPEN, posBlock, dataBuf, &dataLen, keyBuf, keyNum ); i += 1; } |
#7
| |||
| |||
|
|
Hi Thank you for your answers.In fact I was disappointed. well,I disabled AV completely, nothing changed. If the files were readOnly,I think I couldn't get any results but I get NO_ERROR after some attempts. However I checked them. And this is the code.It's not readolny mode. memset(dataBuf , 0 , sizeof(dataBuf) ); memset( keyBuf, 0, sizeof( keyBuf ) ); strcpy(dataBuf , "MA48"); strcpy( (BTI_CHAR *)keyBuf, fileName ); keyNum = 0; dataLen = 5; /* open the DAT file */ i = 0; status = BTRV(B_OPEN, posBlock, dataBuf, &dataLen, keyBuf, keyNum ); while(status == 88){ fp = fopen("unLog.txt" , "a"); fprintf(fp , "%d," , i); fclose(fp); Sleep(SLEEP_TIME);//Some time this sleep reduces the wasted time in the loop status = BTRV(B_OPEN, posBlock, dataBuf, &dataLen, keyBuf, keyNum ); i += 1; } |
#8
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |