• Error 1224 (ERROR_USER_MAPPED_FILE) - what is it?

    From Pooja Batra@21:1/5 to nicolas....@gmail.com on Sat Jan 30 09:44:45 2021
    On Thursday, 7 February 2008 at 00:39:56 UTC+5:30, nicolas....@gmail.com wrote:
    On Feb 4, 10:31 am, "Charlie Gibbs" <cgi...@kltpzyxm.invalid> wrote:
    In article <dte8q397ojqa5lotc64ieojt56atgua...@4ax.com>,

    Dav...@example.invalid (David Lowndes) writes:
    Occasionally, when I try toopenafilefor writing, I get error code
    1224 (ERROR_USER_MAPPED_FILE). The full text corresponding to this
    code is "Therequestedoperationcannotbeperformedon afilewith
    auser-mappedsectionopen."

    This condition only occurs once in a while, at a couple of the 2000
    or so installations where this program runs (under Win2K or XP).

    I'd suspect interference from an anti-virus program. Can you check if these users have an AV installed, and whether the problem disappears
    if they remove it.

    Thanks, I'll check that one out.
    I've had this, and initially thought that I had too many files open
    (forgot to close some files)
    Actually, when reading other answers, I realized I have a regular
    automatic backup that runs on the affected files.
    How the issue got resolved? I am getting same error randomly

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Pooja Batra@21:1/5 to Pooja Batra on Thu Feb 4 22:18:34 2021
    On Saturday, 30 January 2021 at 23:14:48 UTC+5:30, Pooja Batra wrote:
    On Thursday, 7 February 2008 at 00:39:56 UTC+5:30, nicolas....@gmail.com wrote:
    On Feb 4, 10:31 am, "Charlie Gibbs" <cgi...@kltpzyxm.invalid> wrote:
    In article <dte8q397ojqa5lotc64ieojt56atgua...@4ax.com>,

    Dav...@example.invalid (David Lowndes) writes:
    Occasionally, when I try toopenafilefor writing, I get error code
    1224 (ERROR_USER_MAPPED_FILE). The full text corresponding to this
    code is "Therequestedoperationcannotbeperformedon afilewith
    auser-mappedsectionopen."

    This condition only occurs once in a while, at a couple of the 2000
    or so installations where this program runs (under Win2K or XP).

    I'd suspect interference from an anti-virus program. Can you check if these users have an AV installed, and whether the problem disappears
    if they remove it.

    Thanks, I'll check that one out.
    I've had this, and initially thought that I had too many files open
    (forgot to close some files)
    Actually, when reading other answers, I realized I have a regular
    automatic backup that runs on the affected files.
    How the issue got resolved? I am getting same error randomly
    Please revert

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?B?5L2Z6aOO?=@21:1/5 to All on Mon Nov 8 22:46:58 2021
    在 2021年1月31日星期日 UTC+8 上午1:44:48,<Pooja Batra> 写道:
    On Thursday, 7 February 2008 at 00:39:56 UTC+5:30, nicolas....@gmail.com wrote:
    On Feb 4, 10:31 am, "Charlie Gibbs" <cgi...@kltpzyxm.invalid> wrote:
    In article <dte8q397ojqa5lotc64ieojt56atgua...@4ax.com>,

    Dav...@example.invalid (David Lowndes) writes:
    Occasionally, when I try toopenafilefor writing, I get error code
    1224 (ERROR_USER_MAPPED_FILE). The full text corresponding to this
    code is "Therequestedoperationcannotbeperformedon afilewith
    auser-mappedsectionopen."

    This condition only occurs once in a while, at a couple of the 2000 >> or so installations where this program runs (under Win2K or XP).

    I'd suspect interference from an anti-virus program. Can you check if these users have an AV installed, and whether the problem disappears if they remove it.

    Thanks, I'll check that one out.
    I've had this, and initially thought that I had too many files open (forgot to close some files)
    Actually, when reading other answers, I realized I have a regular automatic backup that runs on the affected files.
    How the issue got resolved? I am getting same error randomly
    I also got same error randomly,so have you resolved the problem?thx

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Thomas Schmidt@21:1/5 to All on Tue Jun 20 08:48:12 2023
    In my case (writing 6000 files via a Java program), the problem seemed to be Dropbox synchronisation somehow blocking the file writing. Paused Dropbox synch, error gone.

    - Thomas

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From R.Wieser@21:1/5 to All on Tue Jun 20 18:52:30 2023
    Thomas

    the problem seemed to be Dropbox synchronisation somehow blocking the
    file writing. Paused Dropbox synch, error gone.

    Sounds like a reason :

    [quote]
    The full text corresponding to this code is "The requested operation cannot
    be performed on a file with a user-mapped section open."
    [/quote]

    https://groups.google.com/g/comp.os.ms-windows.programmer.win32/c/plQmyXqAeOI

    IOW, if DropBox is has a file open using a memory-mapped file method than
    the writing to that same file using normal means is likely disallowed (the files contents on the disk and the already-present "view of file" - cached
    file contents - would mismatch).

    One possible solution (no idea if you can delete a file that is
    memory-mapped though) could be to delete the target file before writing a fully new one.

    Regards,
    Rudy Wieser

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)