[fpc-devel] arm-wince step1

Florian Klaempfl florian at freepascal.org
Mon Aug 8 16:51:42 CEST 2005


Oro06 wrote:

> Hi,
> 
> the good new is the following prog RUN on arm-wince-pda :
> 
> var T: text;
> begin
>  assign(T,'\toto.pas');
>  rewrite(T);
>  close(T);
> end.
> 
> -> create the empty file as expected, with no error :)
> 
> the bad news is with writeln, every time i try to use it to write in the
> file or even
> in the std output (console) a simple 'hello world' same error at same
> place.
> tried with inline const, string variable and widestring varaible , here
> latest dump
> with widestring variable :
> 
>   1109c:       e1a01004        mov     r1, r4
>   110a0:       e3a00000        mov     r0, #0  ; 0x0
>   110a4:       eb007733        bl      2ed78 <FPC_WRITE_TEXT_WIDESTR>
>   110a8:       eb0052d0        bl      25bf0 <FPC_IOCHECK>
>   110ac:       e1a00004        mov     r0, r4                          
>         <- here (according to objdump) runtime error 103 (103 mean ' The
> semaphore cannot be set again' )
>   110b0:       eb00751b        bl      2e524 <FPC_WRITELN_END>
>   110b4:       eb0052cd        bl      25bf0 <FPC_IOCHECK>
> 
> Any suggestion ?
> i'll have a look insinde FPC_WRITE_TEXT_WIDESTR

Probably some bug in the error handling. FPC_IOCHECK checks the result of the
write so that error location is quite logical. Unfortunatly none of the core
developers has a wince pda so we can't test or make patches.




More information about the fpc-devel mailing list