Posted:
2-October-2008 07:02 Greetings, -- I seem to monopolise the forums at the moment ... ah well :-) This is a snippet of my code ... counter=0 resp={} for i in resultdom.getNodesFor('/results/row/shortdesc'): counter+=1 newdesc=resultdom.getText('/results/row[' + str(counter) + ']/shortdesc',0) sat.setText('/nvp/description',newdesc) sr=context.createSubRequest("active:python") sr.addArgument("operator", "ffcpl:/resources/impact_tree.py") sr.addArgument("param",DOMXDAAspect(sat)) resp[counter]=context.issueAsyncSubRequest(sr)
counter=0 for i in resultdom.getNodesFor('/results/row/shortdesc'): counter+=1 resp[counter].join()
# Write final output if level==0: # Here the code for after all processing
|
As you can see I submit requests in a loop. Actually this is recusive, this is a snippet from impact_tree.py itself. I'm not really interested in the results ... however, I do want to know when all the requests in the loop have ended since I do have some final processing to do (only at the lowest level, but I know when that is). I'd say that logically speaking my code is correct, however it throws following exception : Message: call() called in inappropriate state Callstack: org.ibex.nestedvm.Runtime.call() line:655 org.ibex.nestedvm.Runtime.call() line:647 org.sqlite.NestedDB.call() line:451 org.sqlite.NestedDB.call() line:433
org.ibex.nestedvm.Runtime$ExecutionException: Jumped to invalid address at (unknown) |
Seems that I'm pushing something to the limit ... any pointers as to what that can be ? Regards, Tom |