General error when access XML Automation Object

hi, i have a silly error. I am using the MS XML v4 DOM Automation objects to create XML documents. I have the effect that when starting a new Client (3.7A) and run one a XML-generating code, the chance to get a “Windows has occured a problem in …”-Error is very high. But when i don’t get this error during this “first” run, the chance to get it later is very small. So I think Navision has a problem to instantiate the Automation Objects for its first use. Has anyone a solution or the same effect ? For example when runnig the NAS I don’t get any of this errors. Maybe it is a problem in the Client or on my machine ?

Just a wild guess: Navision having problems with: Global RecRef variables when touched at different places especially in SingleInstance CU.

oiii … i use some ref-variables with local and global declarations for creating my xml docs dynamicly … [:(]