-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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.
Allyday and pjaspinski
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working