Dear Dasa,
I don't want to share a single instance of QueryTask to all application. Sometimes I initialize this instance in each widget using Actionscript. I know the advantages of having a single instance shared by all applications, but in my case I want to allow that everyone can upload widgets to my application without knowing my classes.
But I have tried setting the useAMF to false and it worked. Unfortunetely this tells me that there is an issue with this QueryTask Class when executing the method executeRelationshipQuery. Using AMF is a major add in in every query so I hope you can figure it out what is happening.
Thanks a lot,
José Sousa
ESRI Portugal