Skip to content

Image locks not released #29

@juona

Description

@juona

Hello,

Many thanks for this lib, it worked out very well for me. However, there seems to be an issue : ]

Describe the bug
I think there is a problem with how images are accessed.

To Reproduce
Print an image, then go and try to delete it. It will not work, the file is EBUSY, locked by the node process.

Expected behavior
I believe that the code places a lock on the file (https://github.com/MatteoMeil/node-native-printer/blob/master/lib/windows/src/windows_printer/Methods.cs#L267) and does not release it, even though the reference is good for garbage collection.

OS
Windows 10

I haven't had a chance to try much else, only images on Windows 10.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions