You are here: PSPad forum > Bug report / Hlášení chyb > PSPad crashing only in non-admin user mode

PSPad crashing only in non-admin user mode

#1 PSPad crashing only in non-admin user mode

Posted by: Stratadrake | Date: 2018-05-26 03:09 | IP: IP Logged

Okay, this looks like a weird one ... I can't use Find/Replace in PSPad at all without it crashing. The error seems self-explanatory, but...

Quote:
Exception description:

Cannot create file "C:\Program Files (x86)\PSPad editor\Recent.INI". Access is denied.

Exception class: EFCreateError
Exception address: 004C332C
----------------------------------------------------------------------------------------------------
Stack list, generated 5/25/2018 7:49:44 PM
[004C3327] System.Classes.TFileStream.Create + $BF
[00409E07] System.@ClassCreate + $7
[004C3244] System.Classes.TFileStream.Create + $20
[004BF5B1] System.Classes.TStrings.SaveToFile + $19
[0050B41F] System.IniFiles.TMemIniFile.UpdateFile + $43
[007B8B62] uFindReplace.TfFindReplace.FormCloseQuery (Line 358, "uFindReplace.pas" + 13) + $4
[00633369] Vcl.Forms.TCustomForm.CloseQuery + $55
[0063339B] Vcl.Forms.TCustomForm.CloseModal + $23
[00633A2B] Vcl.Forms.TCustomForm.ShowModal + $1DB
[007B7CEA] uFindReplace.ShowFindReplace (Line 116, "uFindReplace.pas" + 10) + $4
[0098889B] uMain.TfPSPad.aFindExecute (Line 6154, "uMain.pas" + 6) + $4
[00996B4C] uMain.TfPSPad.ActionListExecute (Line 11199, "uMain.pas" + 11) + $7
[0052F0E4] System.Actions.TContainedActionList.ExecuteAction + $70
[00409B56] System.@CallDynaInst + $6
[00531EBD] Vcl.ActnList.TCustomAction.Execute + $69
[004D45A3] System.Classes.TBasicActionLink.Execute + $13
[0064E763] Vcl.Menus.TMenuItem.Click + $93
[006503EF] Vcl.Menus.DoClick + $EF
[006504DB] Vcl.Menus.TMenu.IsShortCut + $87
[0063401D] Vcl.Forms.TCustomForm.IsShortCut + $4D
[00409B56] System.@CallDynaInst + $6
[0063841E] Vcl.Forms.TApplication.IsShortCut + $4E
[00637952] Vcl.Forms.TApplication.WndProc + $482
[004D549C] System.Classes.StdWndProc + $14
[00633FB0] Vcl.Forms.DispatchShortCut + $5C
[0065D8DC] Vcl.Controls.SendAppMessage + $18
[00669C65] Vcl.Controls.TWinControl.IsMenuKey + $7D
[00669C9D] Vcl.Controls.TWinControl.CNKeyDown + $1D
[00662C06] Vcl.Controls.TControl.WndProc + $2BE
[006677EB] Vcl.Controls.TWinControl.WndProc + $63B
[006F1C02] SynEdit.TCustomSynEdit.WndProc (Line 6351, "SynEdit.pas" + 22) + $4
[00666DB8] Vcl.Controls.TWinControl.MainWndProc + $2C
[004D549C] System.Classes.StdWndProc + $14
[00638328] Vcl.Forms.TApplication.IsKeyMsg + $84
[00638293] Vcl.Forms.TApplication.IsMDIMsg + $3F
[006385D7] Vcl.Forms.TApplication.ProcessMessage + $CF
[0063863E] Vcl.Forms.TApplication.HandleMessage + $A
[00638971] Vcl.Forms.TApplication.Run + $C9
[009C1A72] PSPad.PSPad (Line 95, "PSPad.dpr" + 39) + $7
----------------------------------------------------------------------------------------------------
Program : C:\Program Files (x86)\PSPad editor\PSPad.exe 5.0.0 (277)
System : Windows 10 Home Edition x64, Version: 10.0, Build: 3FAB,
Processor: AMD, AMD A8-7410 APU with AMD Radeon R5 Graphics , 2200 MHz MMX
Display : 1366x768 pixels, 32 bpp
----------------------------------------------------------------------------------------------------
Active Controls Hierarchy:
TButton "bOK"
TfFindReplace "fFindReplace"
----------------------------------------------------------------------------------------------------

I generally use my system in normal user (non-admin) mode, with a second (local-only) user account set up for admin access rights. PSPad was installed with admin access, but (again) I run it at normal user level (non-admin).

The exception can occur almost anywhere (including, ironically, when exiting PSPad itself), but I first discovered it when attempting to do a Find/Replace operation. The exception DOES NOT occur if I am running PSPad as an admin.

Options: Reply | Quote | Up ^


#2 Re: PSPad crashing only in non-admin user mode

Posted by: vbr | Date: 2018-05-26 23:23 | IP: IP Logged

Hi,
it looks like, PSPad is installed to the protected system folder C:\Program Files (x86)\ ... but is configured to have its ini files etc. in the main program folder (in single user environment) - this fails without admin mode, as writing there is disallowed (e.g. recently used search terms like in this case).

To fix this, You can either enable the Multi user environment
Settings: System integration: [x] Multi User Environment
(it might need admin privileges to change the setting)
These files are then stored in user profile folders

Alternatively, You can move the program to some custom not-protected folder, like D:\myprograms\PSPad\
then the single user environment should work too.
regards,
vbr

Options: Reply | Quote | Up ^


#3 Re: PSPad crashing only in non-admin user mode

Posted by: Stratadrake | Date: 2018-05-27 19:21 | IP: IP Logged

vbr:
To fix this, You can either enable the Multi user environment
Settings: System integration: [x] Multi User Environment
(it might need admin privileges to change the setting)
These files are then stored in user profile folders

That worked. Glad to know it was probably my fault during the installation.

Now let me do a quick PSPad re-install just to verify something....

...Okay, no further problems.

Previously, in addition to the above error, I was also getting standard file security warnings when trying to run PSPad which I couldn't seem to disable (even WITH admin verification!). It also blocked shortcuts (e.g. desktop or Start menu links) from working, and when re-running the installer sometimes the 'single user' option was available and other times disabled and it didn't feel consistent why. But a delete of the PSPad folder and a clean re-installation (sidenote: the "single user" option was correctly disabled) appears to have resolved everything.

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR