You are here: PSPad forum > English discussion forum > Delay at start with scripting turned on

Delay at start with scripting turned on

#1 Delay at start with scripting turned on

Posted by: xiqoro | Date: 2021-10-21 14:08 | IP: IP Logged

Hi,

I have a delay of several seconds when starting PSPad with a very short file. The file appears quickly, but what I type doesn't appear until about 7 seconds later.

It does depend on scripting being turned on, but I need scripting, so turning it off is not a option. I also tried to installed it into a directory not covered by the virus scanner, but this doesn't change anything.

Then I did an analysis using the Process Monitor from SysInternals:

Without scripting: The closing of the PsPad\phpCBcfg.ini is immediately followed by querying HKLM\System\CurrentControlSet\Control\Notifications\418A073AA3BC8075.

With scripting: After closing the PsPad\phpCBcfg.ini, there is a load image of C:\Windows\SysWOW64\coml2.dll and then there are a lot of registry keys queried:
1. Check HKCU\Software\Classes
2. Enumerate HKCR\PackagedCom\ClassIndex followed by HKCR\PackagedCom\ClassIndex\{hex-value} accesses with different hex values and more keys because of that, but it is only about 40ms in total.
3. Enumerate HKCU\Software\Classes\WOW6432Node\CLSID. But this seems to be just once, so maybe there is no content. Or maybe it runs concurrently with 4.
4. Enumerate HKCR\WOW6432Node\CLSID. This goes on for almost 5 seconds with the following sub entries:
4.1. HKCU\Software\Classes
4.2. HKCU\Software\Classes\WOW6432Node\CLSID\{<hex value>} (not found)
4.3. HKCR\WOW6432Node\CLSID\{<same hex value>} (found)
4.4 HKCR\WOW6432Node\CLSID\{<same hex value>}\Implemented Categories\{<other hex value>} (not found)
5. No more entries of HKCR\WOW6432Node\CLSID and closing of the same.
6. Closing of several other key.
7. Closing of HKCU\Software\Classes\WOW6432Node\CLSID.
8. Querying of PsPad\Script\JScript and other sub-directories of Script and some other registry keys taking only about 8 ms.
9. Querying HKLM\System\CurrentControlSet\Control\Notifications\418A073AA3BC8075 as above.

So IMHO it is quite obvious that the problem is in step 4 i.e. enumerating HKCR\WOW6432Node\CLSID and maybe HKCU\Software\Classes\WOW6432Node\CLSID, as far as I can see for no positive effect, since it doesn't seem to find anything.

Only I have no idea what is causing it and what to do against it. Googling for the COML2.DLL that might or might not be related to it, didn't make me any wiser.

Any suggestions?

Data about environment:
- Fresh install of PSPad, no configurations changes made.
- Version 5.0.6 (589) 32 Bit (since scripting doesn't seem to work with 64 bit)
- Also tried developer version pspad507beta659.zip, no change.

Thanks in advance.

Options: Reply | Quote | Up ^


#2 Re: Delay at start with scripting turned on

Posted by: pspad | Date: 2021-10-21 17:23 | IP: IP Logged

What antivirus do you use? With Windows 10/11 and Windows defender ther is no problem.
Another antivirus can block or check scripting.

64b version doesn't support scripting yet.

I have one suggestion. In the program settings / System integration you can check
[x] Minimize to try when exit

In tis case PSpad closes all open files and minimize itself into tray. It means next time when you open file there qon't be necessary start it fully again.

Options: Reply | Quote | Up ^


#3 Re: Delay at start with scripting turned on

Posted by: xiqoro | Date: 2021-11-10 22:01 | IP: IP Logged

xiqoro:
Hi,

I have a delay of several seconds when starting PSPad with a very short file. The file appears quickly, but what I type doesn't appear until about 7 seconds later.

It does depend on scripting being turned on, but I need scripting, so turning it off is not a option. I also tried to installed it into a directory not covered by the virus scanner, but this doesn't change anything.

Then I did an analysis using the Process Monitor from SysInternals:

Without scripting: The closing of the PsPad\phpCBcfg.ini is immediately followed by querying HKLM\System\CurrentControlSet\Control\Notifications\418A073AA3BC8075.

With scripting: After closing the PsPad\phpCBcfg.ini, there is a load image of C:\Windows\SysWOW64\coml2.dll and then there are a lot of registry keys queried:
1. Check HKCU\Software\Classes
2. Enumerate HKCR\PackagedCom\ClassIndex followed by HKCR\PackagedCom\ClassIndex\{hex-value} accesses with different hex values and more keys because of that, but it is only about 40ms in total.
3. Enumerate HKCU\Software\Classes\WOW6432Node\CLSID. But this seems to be just once, so maybe there is no content. Or maybe it runs concurrently with 4.
4. Enumerate HKCR\WOW6432Node\CLSID. This goes on for almost 5 seconds with the following sub entries:
4.1. HKCU\Software\Classes
4.2. HKCU\Software\Classes\WOW6432Node\CLSID\{<hex value>} (not found)
4.3. HKCR\WOW6432Node\CLSID\{<same hex value>} (found)
4.4 HKCR\WOW6432Node\CLSID\{<same hex value>}\Implemented Categories\{<other hex value>} (not found)
5. No more entries of HKCR\WOW6432Node\CLSID and closing of the same.
6. Closing of several other key.
7. Closing of HKCU\Software\Classes\WOW6432Node\CLSID.
8. Querying of PsPad\Script\JScript and other sub-directories of Script and some other registry keys taking only about 8 ms.
9. Querying HKLM\System\CurrentControlSet\Control\Notifications\418A073AA3BC8075 as above.
192.168.l.l routerlogin 192.168.0.1
So IMHO it is quite obvious that the problem is in step 4 i.e. enumerating HKCR\WOW6432Node\CLSID and maybe HKCU\Software\Classes\WOW6432Node\CLSID, as far as I can see for no positive effect, since it doesn't seem to find anything.

Only I have no idea what is causing it and what to do against it. Googling for the COML2.DLL that might or might not be related to it, didn't make me any wiser.

Any suggestions?

Data about environment:
- Fresh install of PSPad, no configurations changes made.
- Version 5.0.6 (589) 32 Bit (since scripting doesn't seem to work with 64 bit)
- Also tried developer version pspad507beta659.zip, no change.

Thanks in advance.

Thank you.

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