I use FDB to debug XML problems.  I can see instance numbers and other 
properties that the FB debugger filters.  I don't trust the debugger to step 
into binding code.

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel 
Freiman
Sent: Monday, September 15, 2008 1:59 PM
To: [email protected]
Subject: Re: [flexcoders] XMLListCollection.AddItemAt() silently fails

Yeah, I've been looking into binding causes, but wouldn't I see that happening 
while stepping through the code?  As far as I can tell this is an atomic action 
(or lack thereof).

- Daniel Freiman
On Mon, Sep 15, 2008 at 4:45 PM, Alex Harui <[EMAIL PROTECTED]<mailto:[EMAIL 
PROTECTED]>> wrote:

Maybe setting source[0] triggers change events that refresh source?



From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] On 
Behalf Of Daniel Freiman
Sent: Monday, September 15, 2008 12:03 PM
To: flexcoders
Subject: [flexcoders] XMLListCollection.AddItemAt() silently fails



I have a case where I try to add a node to an empty XMLListCollection and 
addition silently fails.  I step through the code and I find that line 216 of 
XMLListAdapater is the line that is failing (it's supposed to assign the added 
node to the first location in the source list but instead nothing happens).  
Here's the line:

source[0] = length > 0 ? item + source[0] : item;

I can't recreate this bug in any other condition other than the app I'm 
currently developing.  Has anyone else seen this intermitent error?

- Daniel Freiman


Reply via email to