[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Mldonkey-users] Exception Invalid_argument("out-of-bound array or
From: |
MLdonkey |
Subject: |
Re: [Mldonkey-users] Exception Invalid_argument("out-of-bound array or string access") with MLDonkey 2.02-5CVS |
Date: |
Tue, 14 Jan 2003 14:38:16 +0100 |
> Hello,
>
> I just upgraded to MLDonkey 2.02-5 via CVS but now when I try to view my
> downloads in the web interface all I get is this error message:
>
> Exception Invalid_argument("out-of-bound array or string access")
>
> Any idea what could be causing that?
Someone can publish a patch ? You need to change the code in
donkey/donkeyInteractive.ml:
file_ops.op_file_info <- (fun file ->
..........
P.file_chunks = (
let nchunks = file.file_nchunks in
let s = String.make file.file_nchunks '0'in
for i = 0 to nchunks - 1 do
match file.file_chunks.(i) with
PresentTemp | PresentVerified -> s.[i] <- '1'
| _ -> ()
done;
s
.......
to something like:
P.file_chunks = (
let nchunks = file.file_nchunks in
let s = String.make file.file_nchunks '0'in
LINE ADDED v
if file.file_chunks <> [||] then
LINE ADDED ^
for i = 0 to nchunks - 1 do
match file.file_chunks.(i) with
PresentTemp | PresentVerified -> s.[i] <- '1'
| _ -> ()
done;
s
or something like that...
- MLDonkey