I never write to files, I use the ^SPOOL Global and kill it at the end ! Nuno
Fabio wrote:
Nuno,
I changed my code to return the Status caught from Msg.TextData.Write() and displayed the error afterwards (Write $SYSTEM.Status.DisplayError(st)) and it reported the following error:
ERROR #5005: Cannot open file 'LZCOEPUYAWB.stream'1
Again, if I put the following lines on my CSP, it prints '1'
<csp:if condition=($D(sc))> <center><font color="#FF0000" size="3" face="Courier New, Courier, mono">#($SYSTEM.Status.DisplayError(sc))#</font></center> </csp:if>
And finally, that method you were suspicious of is an instance method, and I was calling it on an instantiated object so, no, it doesn't have anything to do with it. It's a stream problem, and it smells like a permission one.
Any ideas?
F�bio
