Error using TextIo command on W7 pc (Ax 4.0)

Hello,

this is my first post here in this forum. Could please someone help me?

I have a trouble using the TextIo command. I have to generate a text file from this class

When Ax excutes the red instruction, the variable ‘FileIo’ should become ‘new’.

If you excute this class from a Windows XP computer, the ‘FileIo’ becomes ‘new’ and Ax generates the text file on pc.

If you excute this class from a Windows 7 computer, the ‘FileIo’ becomes ‘null’ and Ax doesn’t generate the text file on pc.

Have you ever expericed that problem? Thank you