carlosperate / ubittool

Utility to extract the contents of flash from a micro:bit, including MicroPython user code.
https://carlosperate.github.io/ubittool/
MIT License
16 stars 4 forks source link

Error in the Compare Full Flash Contents GUI output box (although it works) #13

Open carlosperate opened 2 years ago

carlosperate commented 2 years ago

On Windows:

...
FPU present: FPv4-SP
4 hardware watchpoints
6 hardware breakpoints, 4 literal comparators
Exception in thread Thread-10:
Traceback (most recent call last):
  File "threading.py", line 932, in _bootstrap_inner
  File "threading.py", line 1254, in run
  File "ubittool\cmds.py", line 188, in <lambda>
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\[removed]\\AppData\\Local\\Temp\\tmp18wfnz_b.html'

So it can't forcefully remove the temp file because it is being used by a different process (the browser most likely).

This is not much of a problem as the file was created in a temp folder.