![]() ![]() |
Oct 12 2006, 05:08 PM
Post
#1
|
|
|
creator of 98SE2ME Group: Moderator Posts: 2398 Joined: 22-November 04 Member No.: 37121
|
UPDATE 2-28-2007
This is *the* fix we have all been waiting for, folks. These 2 fixes were created by Anonymous author, who also developed unofficial U891711, Q918547, GDI*.*, KERNEL32.DLL + older SHELL98 fixes. SHELL98: http://www.mdgx.com/web.htm#9SU Restored proper SHELL32.DLL 4.72.3812.634 English. This SHELL32.DLL version corrects *almost all* EXPLORER.EXE lockups independent of free USER resources percentage: * Unofficial Windows 98/98 SP1/98 SE Explorer Lockups With Internet Explorer 5.xx/6.xx SHELL32.DLL 4.72.3812.634 Fix: - SHELL32.DLL Fix [475 KB, English]: http://www.mdgx.com/files/SHELL98.EXE - SHELL32.DLL Fix [475 KB, French]: http://www.mdgx.com/files/SHELL98F.EXE - SHELL32.DLL Fix [475 KB, Italian]: http://www.mdgx.com/files/SHELL98I.EXE This SHELL32.DLL Fix corrects Windows Explorer (and similar tools that use SHELL32.DLL APIs) lockups while trying to copy/create/move/delete/rename large number of files/folders with Internet Explorer 5.xx/6.xx already installed. BUG: This SHELL32.DLL fix breaks the ability of removing annoying arrows from Desktop shortcut icons! FIX: See "PATCHED SHELL32.DLL BUG + FIX" for complete details: http://www.mdgx.com/98-5.htm#PSBF SHELLME: http://www.mdgx.com/web.htm#MEU Same SHELL32.DLL version "rearranged" for easier localization (translation into languages other than English): * Unofficial Windows ME Explorer Lockups With Internet Explorer 5.xx/6.xx SHELL32.DLL 5.50.4134.120 Fix: Direct download [843 KB, English]: http://www.mdgx.com/files/SHELLME.EXE Direct download [847 KB, Italian]: http://www.mdgx.com/files/ITSHELME.EXE This SHELL32.DLL Fix corrects Windows Explorer (and similar tools that use SHELL32.DLL APIs) lockups while trying to copy/create/move/delete/rename large number of files/folders with Internet Explorer 5.xx/6.xx already installed. How to uninstall this fix [valid for all versions]: Start button -> Settings -> Control Panel -> Add/Remove Programs -> select "Remove Unofficial Explorer Lockups SHELL32.DLL Fix" -> click Add/Remove button -> reboot. Author's comments... QUOTE I am sending SHELL32.DLL [for Win98/98 SE], which is far more than a mere workaround. Author's comments...It does not fix the underlying bug in USER.EXE and its WM processing, but is designed to prevent the series of EXPLORER.EXE hangs 100% even if User Resources are low etc. Although some MSFN members seem to think otherwise, it is not a bug in SHELL32.DLL - it just happens to be the best place to take care of the problem. As always, this patch comes with the notice "Use at your own risk!" I am very sorry but I have no time to localize SHELL32.DLL and I also have no plans at this point to port the code from Win98/98 SE SHELL32.DLL 4.72.3812.634 or 635 to WinME 5.50.4134.120 ( --> .134) - the patch is more difficult to implement under WinME. However, I am sending a "rearranged" SHELL32.DLL 5.50.4134.120 [for WinME], the same "workaround", which should be much easier to localize = translate localizable strings into languages other than English. Rick Chauvin wrote on Jan 3 2007, 05:46 PM: QUOTE I've found interestingly that for whatever reason? the Shell32.dll fix Rick,(SHELL98.EXE) fix for Explorer lockups appears? to be more effective if the Kernel32.dll fix (Copy2gb.exe) is also installed. To explain more of what I've noticed is that if only the Shell32.dll is updated the hang problem is yes much improved (70% successful) over just having the original one in place - but I still can make it hang although not nearly as readily as without it that's for sure; however if I have both the shell32 and Kernel32 dlls updated then in my observances as of yet anyway, it appears to be even more improved (85% successful) and more difficult to trigger the hang problem. (In any of my tests when it hangs the User, System, and GDI resources still show high %) Even though not a perfect fix, the Shell32.dll workaround is a good one and well worth it, and many thanks again to anonymous for taking the time to look at this problem. Many thanks for testing the patch and for your comments. Is there a sure-fire method that you know and use which triggers the bug successfully in most cases? It would be very helpful to know. It may help pinpoint the location of the actual bug in USER.EXE and whatever code in KRNL386.EXE/KERNEL32.DLL USER.EXE calls. Which versions of KERNEL32.DLL have you been using for these tests? 4.10.2225 (official version) from 320798usa8.exe or an earlier version? The updated version from COPY2GB.EXE on your machine is 4.10.2226 (unofficial version), correct? LLXX wrote on Jan 6 2007, 07:39 PM: QUOTE First of all, there is nothing wrong with SetFilePointer as it uses LLXX wrote on Dec 16 2006, 07:33 PM:64-bit file pointers; the problem is in _llseek which interprets its 32-bit file pointer as signed irregardless of the desired seek (from the beginning, from the current position, or from the end), and thus attempts to move the file pointer past the beginning of the file even when the desired seek is from the beginning (in which case a negative offset would be nonsensical). In the unfixed version of _llseek, SetFilePointer gets passed the sign-extended file pointer, causing *it* to attempt to seek past the beginning of the file. I have fixed this by forcing it to zero-extend the file pointer to 64 bits (thus keeping its sign positive) *only* when a seek from the beginning is specified. Otherwise the file pointer is signed and can be moved within the file as usual. Anonymous seems to have fixed shell32.dll to use SetFilePointer instead, although this still leaves _llseek flawed. SetFilePointer doesn't need any changes. QUOTE Don't know what's with that one. The _llseek doesn't even look like it What is her problem??? It is beyond me why she writes such nonsense. Has she not read the official definition on msdn2.microsoft.com and in the 'Win32 SDK Reference Help' (WIN32.HLP)???was fixed. Edit: This problem doesn't affect explorer.exe in WinME so maybe that file is just a dummy. KERNEL32.SetFilePointer has two modes: If called with a 32-bit pointer to the high-order DWORD of a 64-bit file pointer, it uses a 64-bit distance to move and uses it correctly. However, if the pointer to the high-order DWORD is NULL, KERNEL32.SetFilePointer uses a 32-bit distance to move. This is how KERNEL32._llseek calls KERNEL32.SetFilePointer (if unpatched) - KERNEL32._llseek itself is just a stub to call KERNEL32.SetFilePointer! This is very different from a (real = non-zero) pointer pointing to a high-order DWORD that is zero. AFAIK, _llseek and SetFilePointer are flawed in all versions of Windows (Win9x, WinNT, Win2k and WinXP) and probably in Vista, too. Interestingly, the official description on msdn2.microsoft.com of the SetFilePointer API (and its 32-bit call mechanism!) has changed several times over the years. One may speculate if this was done to disguise the flaw. P.S.: The code below is an example of a bug in USER.EXE. Unfortunately, it is *not* the bug that causes the EXPLORER.EXE hang, but the type of bug I was alluding to in an earlier message. This bug can cause mayhem when Resources are too low and KERNEL.LOCALALLOC fails. This type of bug occurs more than once in USER.EXE, but also exists in GDI.EXE, which highlights that coding practices apparently were not at their best when Windows 95 was developed. CODE push 0x40 push 0x14 call KERNEL.LOCALALLOC mov cx, ds <-- ds<>0 mov [bp-4], ax mov [bp-2], ds or cx, ax <-- always <>0 jnz ... xor ax, ax jmp ... QUOTE This is a patched version of: - SHELL32.DLL 5.50.4134.120 for Windows ME - SHELL32.DLL 4.72.3812.648 for Windows 98/98 SP1/98 SE that prevents the EXPLORER hang from occuring when a large number of files is deleted, moved etc. As I wrote earlier, the problem arises because USER.EXE runs completely out of resources (=0%) right after such a file operation is completed. However, this is not a bug in USER.EXE. The patch I am providing is not a fix in the true sense, it is more of a workaround and, as always, is provided 'as is' without warranties expressed or implied and with the note 'Use it at your own risk.' The problem may still occur if a large number of files is deleted, moved etc, while USER resources are low, say below 30%. I also believe this problem has nothing to do with what versions of SHLWAPI.DLL and/or BROWSEUI.DLL are installed. It may occur much more frequently with the IE6 SP1 versions because they have much more code, which also takes longer to execute (and may no longer be "optimized" for a Win9x environment). May I use this opportunity to address a common misconception about GDI and USER resources in Win9x/ME: The OS and all applications, whether they are 16-bit or 32-bit versions, share the same GDI and USER resources. These resources are managed by GDI.EXE and USER.EXE, respectively. One of the two data segments of GDI.EXE is for GDI resources and one of the two data segments of USER.EXE (plus two extra heaps) is for USER resources. GDI and USER objects (in these data segments) are accessed through *16-bit-wide* handles. 32-bit applications (and DLLs) just use zero-extended 32-bit versions of the same handles. The data segments I am referring to are 32-bit segments with an *initial* size of approx. 2.1 MiByte each. The 16-bit resources are just the lowest 65536 bytes each in these two 32-bit data segments. 16-bit-wide handles and the 16-bit resource limit cause the real bottle neck in resources of Win9x. Increasing the default size of the two 32-bit data segments (which would be possible using hidden system settings for them) makes very, very little, if any difference. Please post here your test results. Thanks. Enjoy. |
|
|
|
Oct 12 2006, 08:33 PM
Post
#2
|
|
|
MSFN Junkie ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Banned Posts: 3482 Joined: 4-December 05 Member No.: 81511 OS: none
|
Have you actually tried making a directory with several thousand files in it, and deleting/copying all of them?
(Hint: i386 of XP CD, or extracted contents of all 98SE CAB files Currently using: BROWSELC.DLL and BROWSEUI.DLL 5.50.4807.2300, no problems. Tested up to 16,384 files (used a splitter to split a 16Kb file into 1-byte files). |
|
|
|
Oct 13 2006, 09:02 AM
Post
#3
|
|
|
MSFN Expert ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1351 Joined: 28-March 05 Member No.: 49647
|
I usually don't quote myself but here it goes :
I have just done this test on my Win ME IE 5.5 SP2 system. It's quite interesting, read on :
Starting with system and user resources at 65% free, GDI at 75% free I copied one folder containing 56,493 files and 619 folders totaling 1.55 GB (1,668,057,987 bytes) and occupying 2.07 GB (2,223,521,792 bytes) of disk space. No freeze while copying. Resources didn't change of even 1%. I then enabled explorer view. GDI fell to 70%. I then copied over files and folders in several steps into the top folder obtaining 12383 objects (including 447 folders). GDI resources fell at 64% when I selected all objects. I dropped them into an empty folder but the window froze (but not the rest of explorer), instead of waiting a bit I killed and restarted the explorer from a batch on my middle mouse hook. I was back then with resource level I had begun with. I went again in the folder with the 12383 objects and did reenable explorer view. The resources did not change unlike above when I lost 5% of GDI doing almost the same thing. I did reselect all 12383 objects and tried to drop again in an empty folder. The window froze again but this time I waited and the files finally copied over. The GDI resources did not change unlike above where they fell by another 4% trying to do that. Only after everything was copied did explorer attempt to refresh the view. System and User resources fell briefly to O before jumping back to their normal value. GDI resources did not change but the entire explorer was frozen. So that the "classic" explorer freeze we speak about in this thread appears to take place when explorer updates the view for a large number of files. I killed and restarted it and was back to normal. I did reselect the 12383 objects by click and drag and then did a right-click. It took several seconds to diplay the context menu. I then did choose delete. When the deleting was finished, explorer did refresh the view of the folder and again System and User resources fell briefly to 0 after which the explorer was frozen again. The GDI resources did not visibly change at any point. I did then empty the recycle bin but without having it opened. During the operation, System and User resources fluctuated by 6-7%. Explorer did not freeze doing that but I am pretty sure it would have if I would have had the recycle bin opened. |
|
|
|
Oct 13 2006, 09:16 AM
Post
#4
|
|
|
MSFN Addict ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1982 Joined: 24-November 04 Member No.: 37246
|
Have you actually tried making a directory with several thousand files in it, and deleting/copying all of them? (Hint: i386 of XP CD, or extracted contents of all 98SE CAB files Currently using: BROWSELC.DLL and BROWSEUI.DLL 5.50.4807.2300, no problems. Tested up to 16,384 files (used a splitter to split a 16Kb file into 1-byte files). though you need to be using version 5.50.4948.700 of BROWSEUI.DLL instead of 5.50.4807.2300 to have the latest security benefits for the BROWSEUI.DLL file, LLXX. I no longer use 5.50.4807.2300 of BROWSEUI.DLL file because it has security flaws that are fixed in version 5.50.4948.700. I'll see if I can test out the BROWSE98.EXE patch on my WinME + IE6 SP1 machine, MDGx. eidenk, you need to be using IE6 SP1, NOT IE 5.5 SP2, in order for the BROWSE98.EXE patch to work. This post has been edited by erpdude8: Oct 13 2006, 09:20 AM |
|
|
|
Oct 13 2006, 09:33 AM
Post
#5
|
|
|
MSFN Addict ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1982 Joined: 24-November 04 Member No.: 37246
|
QUOTE (LLXX @ Sep 3 2006, 07:40 PM) IE6 causes problems when large amounts of files are copied, moved, or deleted. I think I found the fix for this large files manipulation bug in Win98 SE with MS IE 6.0 or 6.0 SP1 installed...BROWSEUI.DLL and BROWSELC.DLL have to be replaced with earlier versions from 5.5 to stop this from happening. MDGx, I hate to be the bearer of bad news but the browselc.dll, browseui.dll & shdocvw.dll files from the BROWSE98.EXE patch for IE6 SP1 did not fix the large files manipulation bug in Win98/ME with IE6/IE6 SP1 as I've just tested on my WinME + IE6 SP1 machine when deleting a large amount of files. |
|
|
|
Oct 13 2006, 09:41 AM
Post
#6
|
|
|
MSFN Expert ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1351 Joined: 28-March 05 Member No.: 49647
|
eidenk, you need to be using IE6 SP1, NOT IE 5.5 SP2, in order for the BROWSE98.EXE patch to work. Can you do all I have done above without a freeze with the patch ? I am almost sure you can't. Edit : I see you have answered above already. This post has been edited by eidenk: Oct 13 2006, 09:42 AM |
|
|
|
Oct 13 2006, 09:41 AM
Post
#7
|
|
|
Friend of MSFN ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 934 Joined: 7-October 05 From: Chicago Member No.: 75997 OS: 98SE
|
Explorer hangs after deletion but it recovers without a crash.These files work better than
the orginal because the original files crashed explorer. My theory is that deleting large files eat resources fix the resource problem and we might have a solution. |
|
|
|
Oct 13 2006, 01:50 PM
Post
#8
|
|
|
Friend of MSFN ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 896 Joined: 10-February 05 Member No.: 43624
|
Does it affect file deletion/move done with any program (such as alternative file managers) or only inside Explorer?
...for me Explorer is like Paint: it works but the first thing you install after windows on your PC is a replacement for it. |
|
|
|
Oct 13 2006, 02:02 PM
Post
#9
|
|
|
MSFN Junkie ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Banned Posts: 3482 Joined: 4-December 05 Member No.: 81511 OS: none
|
Have you actually tried making a directory with several thousand files in it, and deleting/copying all of them? (Hint: i386 of XP CD, or extracted contents of all 98SE CAB files Currently using: BROWSELC.DLL and BROWSEUI.DLL 5.50.4807.2300, no problems. Tested up to 16,384 files (used a splitter to split a 16Kb file into 1-byte files). though you need to be using version 5.50.4948.700 of BROWSEUI.DLL instead of 5.50.4807.2300 to have the latest security benefits for the BROWSEUI.DLL file, LLXX. I no longer use 5.50.4807.2300 of BROWSEUI.DLL file because it has security flaws that are fixed in version 5.50.4948.700. I'll see if I can test out the BROWSE98.EXE patch on my WinME + IE6 SP1 machine, MDGx. eidenk, you need to be using IE6 SP1, NOT IE 5.5 SP2, in order for the BROWSE98.EXE patch to work. |
|
|
|
Oct 13 2006, 03:35 PM
Post
#10
|
|
|
creator of 98SE2ME Group: Moderator Posts: 2398 Joined: 22-November 04 Member No.: 37121
|
QUOTE (PROBLEMCHYLD @ Oct 13 2006, 09:41 AM) Explorer hangs after deletion but it recovers without a crash.These files work better than Thanks a lot, PROBLEMCHYLD + erpdude8.the orginal because the original files crashed explorer. My theory is that deleting large files eat resources fix the resource problem and we might have a solution. So far sounds like you guys are the only ones who actually tested this fix [please correct me if I'm wrong]. Thanks. Clarifications: 1. This applies to all explorer "clones" and similar 32-bit file manipulation tools, because as far as I'm aware they all use the shell32 APIs to copy/delete/move files. 2. There may be a difference in behavior if Active Desktop [View as Web Page] is *not* enabled. If you care to actually do this, please try with Active Desktop enabled. Then please disable it and test again. 3. The 98 (FE)/98 SP1/98 SE fixed SHELL32.DLL modified to allow proper files > 2 GB manipulation might also make a difference [473 KB, English]: http://www.mdgx.com/files/SHELL98.EXE So please install this SHELL32.DLL fix before testing BROWSE98.EXE. Everybody: Thanks a lot for the updates, tips etc. I'm pretty much aware of most of the comments on this subject posted here at MSFN forums. But I thought just because my computer didn't freeze after copying the entire XP folder [7367 files] to a different partition, maybe, just maybe, we have a solution to this problem. Unfortunately, doesn't seem to be much improvement over official files from M$. Thanks for trying, anyway. Best wishes. This post has been edited by MDGx: Jan 9 2007, 03:53 PM |
|
|
|
Oct 13 2006, 04:56 PM
Post
#11
|
|
|
Friend of MSFN ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 934 Joined: 7-October 05 From: Chicago Member No.: 75997 OS: 98SE
|
Same results with Active Desktop enable/disable
my resources had drop System 91%-29% User 91%-29% once my resources recovered everything went well just a small hang. Also i'm using BROWSELC.DLL 6.0.2900.2180 from 98SE2XP and the same problem above occurs.Since these files doesn't break anything (To My Knowledge) i recommend keeping them. FYI i have all the latest un/officials patches installed. And yes my system is tweaked also. This post has been edited by PROBLEMCHYLD: Oct 13 2006, 05:38 PM |
|
|
|
Oct 14 2006, 03:50 AM
Post
#12
|
|
|
Member ![]() ![]() Group: Members Posts: 167 Joined: 22-September 05 Member No.: 74059
|
Sorry but is it possible that some of you guys don't invest very much time in this problem
or are to lazy to read previous articles about this issue? I think one can't use IE6 brows* files for Windows Explorer. AFAIK I only know as solution to use the files LLXX mentioned Have you actually tried making a directory with several thousand files in it, and deleting/copying all of them? (Hint: i386 of XP CD, or extracted contents of all 98SE CAB files Currently using: BROWSELC.DLL and BROWSEUI.DLL 5.50.4807.2300, no problems. Tested up to 16,384 files (used a splitter to split a 16Kb file into 1-byte files). with this code: QUOTE CD %windir%\System regsvr32 /u /s %windir%\System\browseui.dll regsvr32 /u /s %windir%\System\browselc.dll regsvr32 /i /s %windir%\browseui.dll regsvr32 /i /s %windir%\browselc.dll Whereas you first have to copy the files mentioned in %windir%. Read this topic eventually This post has been edited by winxpi: Oct 14 2006, 03:54 AM |
|
|
|
Oct 16 2006, 03:07 PM
Post
#13
|
|
|
MSFN Addict ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1982 Joined: 24-November 04 Member No.: 37246
|
Sorry but is it possible that some of you guys don't invest very much time in this problem or are to lazy to read previous articles about this issue? I think one can't use IE6 brows* files for Windows Explorer. AFAIK I only know as solution to use the files LLXX mentioned Have you actually tried making a directory with several thousand files in it, and deleting/copying all of them? (Hint: i386 of XP CD, or extracted contents of all 98SE CAB files Currently using: BROWSELC.DLL and BROWSEUI.DLL 5.50.4807.2300, no problems. Tested up to 16,384 files (used a splitter to split a 16Kb file into 1-byte files). agreed. use the browselc.dll and browseui.dll files LLXX mentioned in her earlier post when using any release of IE6 under Win98/ME to solve the delete large number of files problem |
|
|
|