mIRC Home    About    Download    Register    News    Help

Print Thread
#219981 03/04/10 04:43 PM
Joined: Feb 2006
Posts: 180
C
Crinul Offline OP
Vogon poet
OP Offline
Vogon poet
C
Joined: Feb 2006
Posts: 180
Code:
1)  /fopen Test Test.txt
1b) Result: fopen unable to open 'Test' (C:\mIRC-Beta\Test.txt)
2) //noop $fread(Test)
2b) Result: Crash


Windows XP Professional SP3 - 32 bit

Joined: Oct 2003
Posts: 3,641
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,641
Confirmed on Win7 64

W
Wiz126
Wiz126
W
The same problem occurs with (only when used on a name that failed to open):
$fopen(name).pos - which used to return -1, now crashing
$fgetc(name) – should return * Invalid parameters: $fgetc, now crashing
/fwirte - used to return ‘* fwrite error writing to 'name'’, now crashing
/fseek - used to do nothing, now crashing

While I am at it, It would be nice if a file that fails to open would automatically close itself. Currently it simply stays open which is pretty pointless considering you can do nothing with it but to close it.

Last edited by Wiz126; 04/04/10 05:54 AM.
Joined: Dec 2002
Posts: 3,853
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 3,853
Thanks this has been fixed for the next version.


Link Copied to Clipboard