List Info

Thread: so strange problem




so strange problem
user name
2006-05-26 18:11:02
           ;      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







so strange problem
user name
2006-05-26 18:56:50
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: delphi-en-unsubscribe@yahoogroups.com
> Yahoo! Groups Links
>;
>
>
> 
>
>
>
>
so strange problem
user name
2006-06-03 14:00:36

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: delphi-en-unsubscribe@yahoogroups.com
> Yahoo! Groups Links
>;
>
>
> 
>
>
>
>
so strange problem
user name
2006-06-04 01:57:22
your satisfaction... I would relook over that probndim...  how about some
source on the probndim.

burndata(at)lennyslisting.com(dot)(com)


>From: Jangita <jangitajangita.com>
>Reply-To: delphi-en@yahoogroups.com
>To: delphi-en@yahoogroups.com
>Subject: Re: [delphi-en] so strange problem
&gt;Date: Sat, 03 Jun 2006 17:00:36 +0300
>;
>did you solve the problem? id like to know what happened...
>
&gt;Diaz, William (CIAT) wrote:
&gt; > I make a program and when i run withis code :
> >   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp;  r := 1 - probndim(wd,n-start,error);
>; >   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp;  writeinlog('soil_prob_calc='+floattostr(&nbsp; &nbsp; &nbsp; r));
> >
>  ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp;  (probndim makes some calculations)
> >
> > the program writes in a log file one value
>; >
> > but when I run with this other code:
>; >
>  ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; (with the same parameters values)
&gt; >
>  ; &nbsp;  writeinlog('before');
> >  &nbsp; &nbsp;  r := 1 - probndim(wd,n-start,error);
>; >   ; &nbsp;  writeinlog('soil_prob_calc='+floattostr( r));
> >
> > the value in the log file is other.
&gt; >
> > why if  the only difference is writeinlog('before'); and this
> > only writes a String in the log file, the behavior is not equal?
&gt; >
> > anybody can help me, please
&gt; > william
&gt; >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > -----------------------------------------------------
> > Home page: http://groups.yahoo.com/group/delphi-en/
> > To unsubscribe: delphi-en-unsubscribe@yahoogroups.com
> > Yahoo! Groups Links
>; >
> >
> >
> >
> >
> >
> >
> >


GraphicEX install
user name
2006-06-04 06:53:00
 &nbsp;
  I have all files needed,but can't install or configure it PLEASE HELP.
&nbsp; 
  Thanks
&nbsp; 
  BEST WISHES
&nbsp; Arsen Khachatryan
  -----------------------------------------------------
  http://khaarsen.ueuo.com

&nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; 
---------------------------------
Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta.

[Non-text portions of this message have been removed]

[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )