Amiga-C (31/223)

From:Stephen Illingworth
Date:10 Aug 2001 at 19:28:12
Subject:[amiga-c] Re: ExamineFH

Hello Twelvebullets

On 10-Aug-01, you wrote:

>
> Could someone please help me.
>
> This program reads 100 bytes from S:Startup-sequence and writes to
> a temporary file in Ram:
>
> That works fine.
>
> When I get to ExamineFH, it fails ! Why ??

You haven't got any memory associated with the FileInfoObject, fibb.

Use AllocDosObject() to allocate the necessary, aligned memory.

Oh, and always, always declare main() to return int and remember
to return a value. Not doing so is nothing short of wrong.

Regards

Steve

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Small business owners...
Tell us what you think!
http://us.click.yahoo.com/vO1FAB/txzCAA/ySSFAA/dpFolB/TM
---------------------------------------------------------------------~->

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/