BrianJones wrote:
>
> I'm currently writing an encryption program designed to read in a file (and
> encrypt it) by splitting it in to 128 byte block segments and encrypting
> each segment iteratively. The problem is is that it works fine up to sizes
> of approx 8.5MB (albeit the program slows down throughout the process) and
> then crashes at 8.5 leaving me to have to reboot my computer (linux).
>
> Here is the pseudo-code:
pseudo code is of no use in diagnosing a problem in your real code.
The fact that your program slows down is an inidcation that something
is wrong. My guess would be: the encrypt function allocates memory which is
never released. Thus memory leaks get bigger over time and eventually your
program runs out of memory. But that's just a guess.
--
Karl Heinz Buchegger