procedure to make sure that it strictly does not use any global
variables which it doesn't clean up - or local constants (which are
equivalent to static variables in c) - try changing writeinlog and
replacing with showmessage or some known function, see if the problem
still exists - also check if your probndim function doesn't use what
writeinlog does in terms of shared global variables and the like(nice
way of doing this is to try and copy-paste the function in a totally new
program and see if it will compile; then you know its truly independent
of external variables apart from its parameters)
j
Diaz, William (CIAT) wrote:
> I make a program and when i run withis code :
> r := 1 - probndim(wd,n-start,error);
> writeinlog('soil_prob_calc='+floattostr( r));
>
> (probndim makes some calculations)
>
> the program writes in a log file one value
>
> but when I run with this other code:
>
> (with the same parameters values)
>
> writeinlog('before');
> r := 1 - probndim(wd,n-start,error);
> writeinlog('soil_prob_calc='+floattostr( r));
>
> the value in the log file is other.
>
> why if the only difference is writeinlog('before'); and this
> only writes a String in the log file, the behavior is not equal?
>
> anybody can help me, please
> william
>
>
>
>
>
>
>
>
>
>
> -----------------------------------------------------
> Home page: http://groups.yahoo.com/group/delphi-en/
> To unsubscribe: [EMAIL PROTECTED]
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
SPONSORED LINKS
| C programming language | Computer programming languages | Java programming language |
| The c programming language | C programming language | Concept of programming language |
YAHOO! GROUPS LINKS
- Visit your group "delphi-en" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

