Hi,

I have created an application in Silverlight which allows the users to 
retrieve data from mongodb according to the user's inputs. The user can 
keep on refining his inputs without actually waiting for the callback and 
for each modification the nodejs server is contacted again. The problem I'm 
facing is the values of my variables are lost during the processing. Here's 
an ex:

   1. The server receives a request which sends 5 calls (say Req1) using 
   async.forEach to mongodb 
   2. For all the results received (say Res1), it does some processing or 
   calls mongodb again using async.forEach (say Req2)
   3. Now during this processing Res1 looses its value. 

I don't reuse this variable anywhere except that when the response to Req2 
is received (say Res2), the result is used to modify Req2. I tried putting 
logs but cant really find a reason for this behavior. What should I check?

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to