News:

:) All Electron Probe Micro-Analysts are welcome to register and post!

Main Menu

Error log.txt denied

Started by Ben Buse, August 17, 2023, 06:43:02 AM

Previous topic - Next topic

Ben Buse

I opened badger film v1.2.23, and loaded example 'MAC O Ka in UO2 uncorrected data.txt and clicked calculate and got the error 'Access to the path 'C:|windows\system32\log.txt' is denied'

Strangely the error happens when load through start menu searching for badgerfilm.  But if I go to the folder and click on it, it works

Aurelien Moy

BadgerFilm creates the file 'log.txt' in the same folder where it was launched from.
However, when using the start menu to run BadgerFilm, Windows mistakenly believes that the program was started from the "C:\\windows\system32" folder. Consequently, BadgerFilm attempts to create the 'log.txt' file in this directory, but lacks the necessary privileges, leading to an error message.
I will modify the program so that the log.txt file is created in a designated location (most likely the AppData folder) that can be accessed with regular user privileges.

Thank you for reporting this bug!