2012/3/5 Bernd :
> it was only meant to keep the xterm
> open a few more seconds to read any error message that *might* occur
> when your program refuses to run.
you can also try the following (more elegant):
xterm -hold -e yourprogram
without the sleep. This would hold the xterm window open, n
2012/3/4 max :
> Done what you suggested:
> program runs again via xterm -e "program ; sleep 0 " with fpc 2.4.0; however
> no error message; same with 'sleep 10' !
> So Thank You very much for that, Bernd !
This is strange. Actually the suggestion to put a sleep behind it was
never meant to fix th
On 04 Mar 2012, at 22:31, Zaher Dirkey wrote:
> I found this problem in Delphi and FPC, please test it and confirm if it is
> a bug.
The problem is caused by the facts that
a) on i386, currency operations are calculated using the 80x87 floating point
unit
b) there is no separate abs() for curre
Den 04-03-2012 22:31, Zaher Dirkey skrev:
I found this problem in Delphi and FPC, please test it and confirm if
it is a bug.
---
program test_abs_curr;
uses
sysutils;
var
a: Currency;
begin
a := 674.59;
if a<>abs(-a) then
writeln('not equal')
else
writeln('equ
I found this problem in Delphi and FPC, please test it and confirm if it is
a bug.
---
program test_abs_curr;
uses
sysutils;
var
a: Currency;
begin
a := 674.59;
if a<>abs(-a) then
writeln('not equal')
else
writeln('equal');
end.
---
I am using l
Done what you suggested:
program runs again via xterm -e "program ; sleep 0 " with fpc 2.4.0; however
no error message; same with 'sleep 10' !
So Thank You very much for that, Bernd !
Without the appended '; sleep ' just the flicker.
env: only difference is SHLVL , namely =4 for interactive vs. =5
2012/3/4 Bernd :
> Can you put a sleep behind it to see the error message?
> xterm -e "./project1 ; sleep 10"
And also do the following:
env > env_interactive.txt
xterm -e "env > env_non_interactive.txt"
and then compare the two files. If important environment variables are
missing in the non-in
Can you put a sleep behind it to see the error message?
xterm -e "./project1 ; sleep 10"
I cannot imagine how the version of the compiler can have any
influence on that. Either the compiled program runs on your system or
it doesn't run at all.
Does your program maybe simply crash because you are
> In our previous episode, Ludo Brands said:
> > When you are thinking of using JSON you can use AnsiString as the
> > internal format eventually adding a datatype tag to avoid
> conversion
> > data loss as much as possible.
>
> ansistring is a decimal type. This incurs a binary to decimal
> c