mIRC Home    About    Download    Register    News    Help

Print Thread
/write broken? #46552 02/09/03 03:28 PM
Joined: Sep 2003
Posts: 18
_
_CyRuSS_ Offline OP
Pikka bird
OP Offline
Pikka bird
_
Joined: Sep 2003
Posts: 18
Since i've upgraded to mIRC 6.1 i've been getting alot of /write errors that I was never getting before, from 3 different places in 2 scripts. The error doesn't always happen, sometimes it suceeds in writing, the other times I get this error...

* /write: unable to open file (line xx, scriptname.mrc)

/write -ds
and
/write -il1

are the ones triggering these errors, but other parameters, or no parameters may trigger it also for all I know, the error doesn't come up all the time, but I've got alot of them spewed in my Status Window, the file is writable and exists, and I've never had any problems before the upgrade.

mIRC 6.10,
Win XP Pro SP1


______________
Kiss me, I'm Irish!
Re: /write broken? #46553 02/09/03 04:18 PM
Joined: Mar 2003
Posts: 1,271
L
LocutusofBorg Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
Same OS, same code, no problem. I would almost think the file you are writing to is write protected, but I suppose you checked that?


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
Re: /write broken? #46554 02/09/03 04:50 PM
Joined: Sep 2003
Posts: 18
_
_CyRuSS_ Offline OP
Pikka bird
OP Offline
Pikka bird
_
Joined: Sep 2003
Posts: 18
Yes i have, it was working fine in mirc 6.03 forever, then when i installed 6.1, everything was fine for about a day, then i noticed these errors, sometimes the /write is successful, sometimes it isn't and it gives that error, this is on 2 different scripts with 3 different files, and different parameters.

Also a friend of mine said he got the errors too

i could do a /write now and tell you it works fine, but if i keep doing it, after a while i will get the error, or something.


______________
Kiss me, I'm Irish!
Re: /write broken? #46555 03/09/03 01:04 AM
Joined: Jun 2003
Posts: 32
WatchMinister Offline
Ameglian cow
Offline
Ameglian cow
Joined: Jun 2003
Posts: 32
Same thing here, but with hash table writing instead of /write.

Re: /write broken? #46556 03/09/03 01:18 AM
Joined: Dec 2002
Posts: 339
D
Doomstars Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Dec 2002
Posts: 339
It's a coincidence. I get the same type of errors I believe with mIRC 6.03. I think it has to do with how fast you're writing to a file. I could be wrong.

Re: /write broken? #46557 03/09/03 01:26 AM
Joined: Sep 2003
Posts: 18
_
_CyRuSS_ Offline OP
Pikka bird
OP Offline
Pikka bird
_
Joined: Sep 2003
Posts: 18
What isn't working in the hash tables? is it the /hsave command that is giving you the same error?

Also, Another friend of mine has just told me he is now getting the same errors, he said it took a while, after the script had been running a while writing away etc.., then the errors came.

Weird that, thats how it happened for me too, worked fine for like a day, then the errors started coming. So thats 3 people now, excluding WatchMinister's hash table problem. So there must definatly be a bug in /write frown

Back to v6.03 I go.


______________
Kiss me, I'm Irish!
Re: /write broken? #46558 03/09/03 11:38 AM
Joined: Apr 2003
Posts: 414
Adrenalin Offline
Fjord artisan
Offline
Fjord artisan
Joined: Apr 2003
Posts: 414
6.10 - must be a beta version ..


mIRC Chm Help 6.16.0.3 Full Anchored!
Re: /write broken? #46559 03/09/03 10:55 PM
Joined: Jan 2003
Posts: 87
T
Tat Offline
Babel fish
Offline
Babel fish
T
Joined: Jan 2003
Posts: 87
My guess is after switching a lot of the write stuff over to actually using streams like in C++, as mIRC is written in C++, he made some mistake that allows for the stream not to close correctly. The file is still open when something else tries to write in it, and because Windows protects the file from being accessed no further writes can be done. Which explains why when the error hits once it hits a lot of times. The file gets locked open.

Re: /write broken? #46560 05/09/03 03:53 AM
Joined: Sep 2003
Posts: 7
B
BlackDrag Offline
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
B
Joined: Sep 2003
Posts: 7
The same thing happened to me after leaving mIRC up for several hours (more than a day). I knwo others who have experienced thsi problem. Don't think it's coincidence.

Eric

Re: /write broken? #46561 08/09/03 01:06 PM
Joined: Dec 2002
Posts: 4,577
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 4,577
I would need to see a short, simple example script (of a few lines) that reproduces this problem for you.

Re: /write broken? #46562 08/09/03 03:33 PM
Joined: Sep 2003
Posts: 18
_
_CyRuSS_ Offline OP
Pikka bird
OP Offline
Pikka bird
_
Joined: Sep 2003
Posts: 18
Well it doesn't have to be a script, even putting "//write -l1 somefile.txt this is a test" into the command line, it will write it first, create the file, but then I get the "* /write: unable to open file" error if I try again. (and the file isn't write protected).

"/write somefile.txt this is another test" works fine, but whenever I use parameters it gives the error.

But the best thing is, it doesn't happen when you first run mIRC, it works fine, let it run for a day or 2, writing away, then the errors start appearing. My mIRC is currently up 2 days 15 hours, and i am repeatidly getting the errors.

Maybe try letting a timer run for a cpl of days and then you will see the errors.

/timer 0 60 /write -il1 somefile.txt this is a test

Russ


______________
Kiss me, I'm Irish!
Re: /write broken? #46563 10/09/03 05:19 PM
Joined: Sep 2003
Posts: 13
I
iwanpompier Offline
Pikka bird
Offline
Pikka bird
I
Joined: Sep 2003
Posts: 13
yeah i have this same bug i made this litle alias thing to test after how many times it stopes working
Code:
 
test {
  var %1 1
  while (1) {
    write -l2 test.txt bugtest
    .timertest 1 1 echo -a It Stoped Working After %1 Tries.
    inc %1
  }
}

the result for me is everytime 32767 Tries
and its more then that the write -l stopes working but you wont be abel to save even script changes just try that and then change stuff in your script then close mirc and open it again and you will see it has not saved it.

Last edited by iwanpompier; 10/09/03 05:22 PM.
Re: /write broken? #46564 10/09/03 05:44 PM
Joined: Sep 2003
Posts: 18
_
_CyRuSS_ Offline OP
Pikka bird
OP Offline
Pikka bird
_
Joined: Sep 2003
Posts: 18
Yes same for me.

I changed the alias after I did it, restarted mIRC, you're right it does not show the changes... but if you open the script in notepad you will see the changes were saved, just mirc is choosing to not load them, and is still using the old script.... dunno how it's managed that since it got restarted.

<scratches head>

I'd say it is a filehandle problem maybe, mIRC not closing the file after it writes to it, so it just keeps creating new file handles until it chokes? I dunno confused


______________
Kiss me, I'm Irish!
Re: /write broken? #46565 10/09/03 06:00 PM
Joined: Sep 2003
Posts: 13
I
iwanpompier Offline
Pikka bird
Offline
Pikka bird
I
Joined: Sep 2003
Posts: 13
yeah i see what happends when you open the script file after you have changed it when that error hapend it adds another section in the script file so when it happends it only uses the second section and when you restartd mirc it uses the first one and deletes the second one when you make changes in it


my remote.ini file is also messed up it has alot of teh same section in it with the same varibles in all of them

Last edited by iwanpompier; 10/09/03 06:06 PM.
Re: /write broken? #46566 10/09/03 06:07 PM
Joined: Sep 2003
Posts: 18
_
_CyRuSS_ Offline OP
Pikka bird
OP Offline
Pikka bird
_
Joined: Sep 2003
Posts: 18
Yep this has happened to me several times recently, now I know that the /write bug is the cause of thus other bug! crazy


______________
Kiss me, I'm Irish!