[Virtualacorn-list] !Pic_Index on VRPC - Windows7 64bit?

Martin styleguide at avisoft.f9.co.uk
Thu Feb 27 17:45:10 GMT 2014


In article <53e09a13c6mail at JohnWoodhouse.co.uk>,
   <mail at JohnWoodhouse.co.uk> wrote:
> Jeremy Nicoll - ml virtualacorn	<jn.ml.vac.83 at wingsandbeaks.org.uk>
> wrote:

> > /If/ you're willing to install !Reporter, the programmer should be able
> > to liaise with you to collect the information needed (perhaps by tracing
> > other parts of the program) to find out why the problems occur.  For
> > example if this were my program I'd trace (to the !Reporter log) all
> > file opening & closing.

> I have just got round to doing just that and the last bit of it goes :


> [0234F538/] |  Set WimpSlot and Run
> [0234F538/] If Sys$OSVersion < 500 Then WimpSlot -min 400k -max 400k Else
> WimpSlot -min 600k -max 600k
> [0234F538/]  WimpSlot -min 400k -max 400k
> [0234F538/] |Run <Pic_Index$Dir>.!RunImageX 
> [0234F538/] |Run <Pic_Index$Dir>.!RunImageA 
> [0234F538/] Run <Pic_Index$Dir>.!RunImage 
> [0234F538/] @RunType_FFB
> HostFS::HardDisc4.$.WebPage design.!Pic_Index.!RunImage
> [0234F538/] Basic -quit
> "HostFS::HardDisc4.$.WebPage design.!Pic_Index.!RunImage" 
> [BASIC/3FC03A30] Exec
> 15:34:02.73 TaskInit  &3FC03A30 Pic_Index
> [BASIC/3FC03A30] Set Pic_Index$Version 1.24c (Sep 2012)
> [BASIC/3FC03A30] Set Pic_Index$User Put your name here in Choices
> [BASIC/3FC03A30] Delete <Pic_Index$Dir>.file
> 15:34:02.76 ** Error **
>   Error  : &000000DE
>   Message: Handle is either illegal or has been closed
> 15:34:02.76 ** WimpError ** from Error from Pic_Index
>   Error  : &00000000
>   Message: Handle is either illegal or has been closed at line 1600

This is the original error at line 1600: a file handle is being used that
is duff!

> [BASIC/3FC03A30] Exec
> Basic Stack
>   100 PROCuser_error
>   190 PROC_ensureallfilesareclosed
>       PROC
> ** Basic Error ** ERR=26 Unknown or missing variable ERL=18970
> 15:34:04.35 ** WimpError ** from Error from Pic_Index
>   Error  : &00000000
>   Message: Unknown or missing variable at line 18970

This look like a secondary error at line 18970 as part of
PROC_ensureallfilesclosed, which has been called by PROCuser_error. 
This is trying to read a variable which does not exist!

Sounds like a program error in the error handler there!!  

> [BASIC/3FC03A30] Exec
> Basic Stack
>   100 PROCuser_error
>   190 PROC_ensureallfilesareclosed
>       PROC
> ** Basic Error ** ERR=26 Unknown or missing variable ERL=18970
> 15:34:05.49 ** WimpError ** from Error from Pic_Index
>   Error  : &00000000
>   Message: Unknown or missing variable at line 18970
> [BASIC/3FC03A30] Exec
> 15:34:08.52 ** WimpError ** from Window Manager
>   Error  : &050DEAD0
>   Message: Press Stop to terminate Unknown
> [BASIC/3FC03A30] Exec
> 15:34:10.01 TaskClose &3FC03A30 
> [WindowManager/] Exec


> do I read it correctly that it is trying to close a file which doesn't
> exist?

No: the file *name* may exist, but the file *handle*  is is invalid.
The handle should be obtained when the file is opened.

Martin

-- 
Martin Avison      using a British Iyonix running RISC OS 5 
                   and the Pluto mail and newsreader




More information about the Virtualacorn-list mailing list