Hmmm... isn't it bad if you have unhandled race condition and just
ignore this fact? 
Of course, it is your app... :))


Cheers,
Dmitri.




--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Well, one reason is the one you discovered; timing issues can mess with
> lastResult.  event.result is reliable.  That is enough  reason for me.
> But it is your app, you can do whatever you want.
> 
> Tracy
> 
>  
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Dmitri Girski
> Sent: Friday, April 25, 2008 9:01 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Partial result from HTTPService call
> 
>  
> 
> Not really.
> 
> You will try to do the proper thing and unsubscribe from the result
> event and mess up your httpservice object.
> 
> Still can't find the reason why event.result is better than lastResult.
> 
> Cheers,
> Dmitri.
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> , "Tracy Spratt" <tspratt@> wrote:
> >
> > Using event.result would also prevent that. lastResult is unadvisable
> > for programmatic use.
> > 
> > Tracy
> > 
> > 
> > 
> > ________________________________
> > 
> > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> ] On
> > Behalf Of Dmitri Girski
> > Sent: Friday, April 25, 2008 9:42 AM
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> > Subject: [flexcoders] Re: Partial result from HTTPService call
> > 
> > 
> > 
> > Hi Josh,
> > 
> > I've found my problem - it was a race condition, i.e. the new request
> > was killing the previous one. 
> > So, I've just placed the locks around the send()-receive() functions.
> > And also, if next request comes I start the timer which checks every
> > 0.5 sec if we can start the request procedure.
> > 
> > Cheers,
> > Dmitri.
> > 
> > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > , "Josh McDonald" <dznuts@> wrote:
> > >
> > > See if it goes away if you delay your work with a callLater()? If
> > so, then
> > > you're probably dead right :)
> > > 
> > > -J
> > > 
> > > On Wed, Apr 23, 2008 at 3:27 PM, Dmitri Girski <mitek17@> wrote:
> > > 
> > > > Hi Tracy,
> > > >
> > > > Probably you are right after all.
> > > > After some time of trouble free usage of httService.lastResult
> I've
> > > > bumped into the problem that it is null and event.result is not.
> > > >
> > > > Maybe it is a race condition and event comes before the lastResult
> > > > property is set?
> > > >
> > > > Cheers,
> > > > Dmitri.
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> 
> > <mailto:flexcoders%40yahoogroups.com> <flexcoders%40yahoogroups.com>,
> > "Tracy
> > > > Spratt" <tspratt@> wrote:
> > > > >
> > > > > It is in the docs somewhere, but I couldn't find it when I
> > looked now.
> > > > > Maybe it isn't "exactly" the same.
> > > > >
> > > > > Tracy
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > >
> > > > > From: flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> 
> > <mailto:flexcoders%40yahoogroups.com> <flexcoders%40yahoogroups.com>
> > [mailto:
> > > > flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > <flexcoders%40yahoogroups.com>] On
> > > > > Behalf Of Dmitri Girski
> > > > > Sent: Wednesday, April 02, 2008 4:05 PM
> > > > > To: flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> 
> > <mailto:flexcoders%40yahoogroups.com> <flexcoders%40yahoogroups.com>
> > > > > Subject: [flexcoders] Re: Partial result from HTTPService call
> > > > >
> > > > >
> > > > >
> > > > > Why not to use lastResult? It is absolutely the same as
> > event.result.
> > > > > Even better - you can bind to it :)
> > > > >
> > > > > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> 
> > <mailto:flexcoders%40yahoogroups.com> 
> > <flexcoders%40yahoogroups.com><mailto:
> > > > flexcoders%40yahoogroups.com <flexcoders%2540yahoogroups.com>>
> > > > > , "Tracy Spratt" <tspratt@> wrote:
> > > > > >
> > > > > > First, don't use lastResult. It is intended for binding
> > > > > expressions. Use event.result. Change that an see if it helps.
> > > > > >
> > > > > > Tracy
> > > > > >
> > > > >
> > > >
> > > > 
> > > >
> > > 
> > > 
> > > 
> > > -- 
> > > "Therefore, send not to know For whom the bell tolls. It tolls for
> > thee."
> > > 
> > > :: Josh 'G-Funk' McDonald
> > > :: 0437 221 380 :: josh@
> > >
> >
>


Reply via email to