mIRC Home    About    Download    Register    News    Help

Print Thread
after using the /write function for a while, it wo #64002 14/12/03 07:30 AM
Joined: Jul 2003
Posts: 24
C
cdwriter Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Jul 2003
Posts: 24
after using the /write function for a while, it work.
it says unable to open file... :\
if I close mIRC and reopen it, it works :\

Re: after using the /write function for a while, it wo #64003 14/12/03 10:05 AM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
If you're using a lot of write's i'd look into learning /fopen and /fwrite (and of cource /fclose) Much faster, and most likely more what you need.


-KingTomato
Re: after using the /write function for a while, i #64004 14/12/03 10:33 AM
Joined: Jul 2003
Posts: 24
C
cdwriter Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Jul 2003
Posts: 24
update:
the bug occures only when using write -il1 <file> <text>

Re: after using the /write function for a while, it wo #64005 14/12/03 05:01 PM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Can you provide code that reproduces the bug?


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Re: after using the /write function for a while, it wo #64006 15/12/03 03:04 AM
Joined: Oct 2003
Posts: 6
A
andr0id Offline
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
A
Joined: Oct 2003
Posts: 6

Re: after using the /write function for a while, i #64007 15/12/03 01:09 PM
Joined: Apr 2003
Posts: 414
Adrenalin Offline
Fjord artisan
Offline
Fjord artisan
Joined: Apr 2003
Posts: 414
The bug is from 6.10.. Just retesting this code on the 6.12:

Code:
alias testzz {
  var %1 1
  while (1) {
    write -l2 test.txt bugtest
    .timertest 1 1 echo -a It Stoped Working After %1 Tries.
    inc %1
  }
}


And i get same error..

* /write: unable to open file (line 4, zzzzzzzzz)
-
It Stoped Working After 32768 Tries.


mIRC Chm Help 6.16.0.3 Full Anchored!
Re: after using the /write function for a while, i #64008 16/12/03 04:59 AM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
I got the same responce, its like there is some counter being incremented on how many writes you did to that file.
I note that 32768 is 8000hex , might have something to do with a signed integer being used and it just rolled over from 32767 to -32768. And maybe the negitive number causes the invalid write error to occur.

Re: after using the /write function for a while, i #64009 16/12/03 05:09 AM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Same count here.


-KingTomato
Re: after using the /write function for a while, it wo #64010 18/12/03 04:02 AM
Joined: Sep 2003
Posts: 7
B
BlackDrag Offline
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
B
Joined: Sep 2003
Posts: 7
The /write bug has already been reported in two versions and Khaled has not fixed it.

/fwrite would be useful if it had all the right switches, but with certain scripts /fwrite is useless.

I hope Khaled fixes the problem. I have been told by coders that it is just a matter of the command he is using for the process.

To prevent this from happening I shut mIRC every 24 hours and restart. It happens after so many writes, as the link says.

Eric

Re: after using the /write function for a while, it wo #64011 20/12/03 05:21 AM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Actually i found that its 32768 per file, and also from memory only on -l# (well as far as i tested which wasnt far smile )

Other writes function fine, so i still felt it might be some internal counter, but cant for the life of me think what the counter would be being used for, so maybe you are write its external to mirc, that the counters maintained in maybe the compiler (C is it?) has some internal routine values that ones overflowing, styill i cant think of what it would need it for.

Re: after using the /write function for a while, i #64012 31/12/03 07:21 PM
Joined: Dec 2003
Posts: 3
U
Urgo Offline
Self-satisified door
Offline
Self-satisified door
U
Joined: Dec 2003
Posts: 3
Just bumping this thread up to get it noticed again. I too am having the same problem and have been ever since I upgraded to 6.12 from 6.03. I am using WinXP if that makes a difference. I ran the varies write testing scripts that people posted and get the same numbers (or very close depending on other writes that occur too).

Code:
It Stoped Working After 32767 Tries.  


Here are links to three other threads reporting this same bug. PLEASE fix this!

report 1 report 2 report 3

Re: after using the /write function for a while, it wo #64013 04/01/04 05:41 PM
Joined: Dec 2002
Posts: 18
T
TomT Offline
Pikka bird
Offline
Pikka bird
T
Joined: Dec 2002
Posts: 18
I find it hard to believe that Khaled has not taken an interest in this particular problem. The bug exists. It should not exist. And only quiet from the developer.

I have 2 scripts that are totally broken by this problem. Thus far, efforts to replace the write process with fwrite results in errors to the test file being written to.

Come on folks.. if you want folks to switch to 6.12 and avoid the exploits present in previous versions, then fix this problem so they can!

This problem is easily duplicated. For scripts that need to do any appreciable amount of writing to files.. FAILURE! At least give us news on whether we should expect a fix.

Re: after using the /write function for a while, it wo #64014 04/01/04 09:43 PM
Joined: Dec 2002
Posts: 3,127
P
ParaBrat Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: Dec 2002
Posts: 3,127
Please realize that any lack of response posted here on something reported doesnt mean that Khaled isnt interested or isnt looking into the report. He rarely posts that something is "fixed next version" and doesnt announce in advance changes he has made/added/tweaked.


ParaBrat @#mIRCAide DALnet
Re: after using the /write function for a while, it wo #64015 04/01/04 10:44 PM
Joined: Dec 2002
Posts: 18
T
TomT Offline
Pikka bird
Offline
Pikka bird
T
Joined: Dec 2002
Posts: 18
This is huge. This "bug" makes this program next to unusable and there is no fix and no response in how many weeks. I think the record speaks for itself. I have been a Khaled supporter for a long time. This situation is inexcusable!

Re: after using the /write function for a while, it wo #64016 10/01/04 02:50 PM
Joined: Dec 2002
Posts: 18
T
TomT Offline
Pikka bird
Offline
Pikka bird
T
Joined: Dec 2002
Posts: 18
Has anyone found a work around to the /write problem?

Re: after using the /write function for a while, it wo #64017 11/01/04 05:10 AM
Joined: Sep 2003
Posts: 7
B
BlackDrag Offline
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
B
Joined: Sep 2003
Posts: 7
There is no workaround. This will prevent you from writing to a file after the 32k times.

I find it hard to believe that the two sticky bugs are about a browser opening and a transparency isue (if I remember right) but this bug should up be there as well.

Thanks for responding Para.


Eric

Re: after using the /write function for a while, it wo #64018 12/01/04 01:53 AM
Joined: Dec 2002
Posts: 3,127
P
ParaBrat Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: Dec 2002
Posts: 3,127
You're welcome BlackDrag.

We dont put every bug reported or solutions for them as stickies. That just wouldnt be practical. In the browser one, (after 9,873,492 questions about it) i felt it was the easiest way to refer ppl to various workarounds until the next release resolved it. it was something that effected a lot of ppl who dont use IE and the workarounds were spread out on different threads/areas of the forum. It was also something asked about often in #mIRC, and far simpler to refer them to one thread here with links to others. I've left it as a sticky since there are ppl who prefer using past versions. Sticky doesnt necessarily equate with import, but rather is a way to answer some more commonly asked questions, condense info and give the many links that may be involved.


ParaBrat @#mIRCAide DALnet