mIRC Homepage

after using the /write function for a while, it wo

Posted By: cdwriter

after using the /write function for a while, it wo - 14/12/03 07:30 AM

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 :\
Posted By: KingTomato

Re: after using the /write function for a while, it wo - 14/12/03 10:05 AM

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.
Posted By: cdwriter

Re: after using the /write function for a while, i - 14/12/03 10:33 AM

update:
the bug occures only when using write -il1 <file> <text>
Posted By: qwerty

Re: after using the /write function for a while, it wo - 14/12/03 05:01 PM

Can you provide code that reproduces the bug?
Posted By: andr0id

Re: after using the /write function for a while, it wo - 15/12/03 03:04 AM

/write bug
Posted By: Adrenalin

Re: after using the /write function for a while, i - 15/12/03 01:09 PM

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.
Posted By: DaveC

Re: after using the /write function for a while, i - 16/12/03 04:59 AM

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.
Posted By: KingTomato

Re: after using the /write function for a while, i - 16/12/03 05:09 AM

Same count here.
Posted By: BlackDrag

Re: after using the /write function for a while, it wo - 18/12/03 04:02 AM

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
Posted By: DaveC

Re: after using the /write function for a while, it wo - 20/12/03 05:21 AM

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.
Posted By: Urgo

Re: after using the /write function for a while, i - 31/12/03 07:21 PM

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
Posted By: TomT

Re: after using the /write function for a while, it wo - 04/01/04 05:41 PM

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.
Posted By: ParaBrat

Re: after using the /write function for a while, it wo - 04/01/04 09:43 PM

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.
Posted By: TomT

Re: after using the /write function for a while, it wo - 04/01/04 10:44 PM

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!
Posted By: TomT

Re: after using the /write function for a while, it wo - 10/01/04 02:50 PM

Has anyone found a work around to the /write problem?
Posted By: BlackDrag

Re: after using the /write function for a while, it wo - 11/01/04 05:10 AM

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
Posted By: ParaBrat

Re: after using the /write function for a while, it wo - 12/01/04 01:53 AM

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.
© 2019 mIRC Discussion Forums