MSFN Forum: KernelEx -- On building, debugging and related matters... - MSFN Forum

Jump to content


  • 8 Pages +
  • 1
  • 2
  • 3
  • 4
  • 5
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

KernelEx -- On building, debugging and related matters... Rate Topic: -----

#41 User is offline   piotrhn 

  • Newbie
  • Group: Members
  • Posts: 40
  • Joined: 17-July 06
  • OS:Windows 8 x64
  • Country: Country Flag

Posted 17 March 2013 - 04:09 AM

View Postcoolman, on 16 March 2013 - 05:38 PM, said:

The new build, you can use this safely!


Hi,

I Installed on Win98 SE EN + uSP3.19, but still are errors. When i click Right Mouse Button, at desktop on any file or folder. Windows crash with unicows.dll.
KernelEx doesn't create a LOG file. Thanks.

Spoiler


Windows ME crash, when i click on start - Right Mouse Button.
Attached File  WATSON21.rar (59.01K)
Number of downloads: 3

This post has been edited by piotrhn: 17 March 2013 - 05:50 AM



#42 User is offline   schwups 

  • schwups
  • PipPip
  • Group: Members
  • Posts: 273
  • Joined: 11-November 09
  • OS:ME
  • Country: Country Flag

Posted 17 March 2013 - 04:54 AM

Quote

The new build, you can use this safely!
KernelEx-dev.7z (259.32K)


Hello coolman,

did you compile Xeno's from the SourceForge Repo?



#43 User is offline   Leyok 

  • Newbie
  • Group: Members
  • Posts: 40
  • Joined: 18-November 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 17 March 2013 - 06:54 AM

I fixed the unicows and kexbases crashes.
Let me know if you have any problems...

Log file will be created in C:\WINDOWS\KernelEx, called KernelEx.log.

This post has been edited by Leyok: 20 March 2013 - 08:46 AM


#44 User is offline   PROBLEMCHYLD 

  • The Resurrector for old Windows OS
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,470
  • Joined: 07-October 05
  • OS:98SE
  • Country: Country Flag

Posted 17 March 2013 - 09:46 AM

View PostLeyok, on 17 March 2013 - 06:54 AM, said:

I fixed the unicows and kexbases crashes.
Let me know if you have any problems...

Log file will be created in C:\WINDOWS\KernelEx, called KernelEx.log.
Frontpage Express hangs with your version and netapi32.dll is nowhere to be found. This was test on a clean install with SP3.19 with all options installed.

#45 User is offline   Drugwash 

  • MSFN Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,099
  • Joined: 21-June 06
  • OS:98SE
  • Country: Country Flag

Posted 17 March 2013 - 02:19 PM

@PROBLEMCHYLD: netapi32.dll is a standard Win9x library, should be found on the installation CD (WIN98_38.CAB) and should get installed with the network card or something. I got it installed on the test machine without touching additional files or anything - just installing drivers, configuring local network and installing a slightly older version of uSP3.

@Leyok: no matter what I do, I can't get a working version compiled from the Github source. All files do compile fine (using my slightly modified project files) but upon reboot there's the usual machine hang and nothing more but a mouse cursor on a desktop picture with no Explorer or desktop icons. I've built the same project under 98SE and XP-SP3, using VC6 and 98DDK; only difference is 98SE has NSIS 2.46 while XP has NSIS 2.44. None of my versions would create the debug log.

The package you posted above does install succesfully but it exhibits some strange bahavior: couldn't use the mouse buttons anymore in GOM Player after displaying the About window; only through keyboard was I able to close that dialog.

Neither the 98SE nor the XP builds match the file sizes from your package. There must be some differences here - are you by chance using the Win2000 DDK? I just can't get to the bottom of this and it's driving me crazy. :(

Here's both outputs from 98SE and XP-SP3 (separate files and NSIS installers): 98SE XP-SP3

This post has been edited by Drugwash: 17 March 2013 - 02:24 PM


#46 User is offline   Leyok 

  • Newbie
  • Group: Members
  • Posts: 40
  • Joined: 18-November 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 17 March 2013 - 03:06 PM

View PostPROBLEMCHYLD, on 17 March 2013 - 09:46 AM, said:

Frontpage Express hangs with your version and netapi32.dll is nowhere to be found. This was test on a clean install with SP3.19 with all options installed.


I fixed most hangs and netapi32.dll is now in kexbasen.

View PostDrugwash, on 17 March 2013 - 02:19 PM, said:

@Leyok: no matter what I do, I can't get a working version compiled from the Github source. All files do compile fine (using my slightly modified project files) but upon reboot there's the usual machine hang and nothing more but a mouse cursor on a desktop picture with no Explorer or desktop icons. I've built the same project under 98SE and XP-SP3, using VC6 and 98DDK; only difference is 98SE has NSIS 2.46 while XP has NSIS 2.44. None of my versions would create the debug log.

The package you posted above does install succesfully but it exhibits some strange bahavior: couldn't use the mouse buttons anymore in GOM Player after displaying the About window; only through keyboard was I able to close that dialog.

Neither the 98SE nor the XP builds match the file sizes from your package. There must be some differences here - are you by chance using the Win2000 DDK? I just can't get to the bottom of this and it's driving me crazy. :(

Here's both outputs from 98SE and XP-SP3 (separate files and NSIS installers): 98SE XP-SP3


Attach KernelEx.log (from C:\WINDOWS\KernelEx), I want to see what's wrong.
I don't really know what's the problem with the invalid directory thing, the post-build only copy KernelEx.lib to the common folder in the root project directory.

WkspDir=.
SOURCE="$(InputPath)"
PostBuild_Cmds=copy /Y "$(OutDir)\KernelEx.lib" "$(WkspDir)\common"


You can also add "echo $(WkspDir)" and "echo $(ProjDir)" in the Post-Build option to see their values. I never tried to put KernelEx in a path that contains space, I don't know if it's a problem.

This post has been edited by Leyok: 17 March 2013 - 03:18 PM


#47 User is offline   Drugwash 

  • MSFN Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,099
  • Joined: 21-June 06
  • OS:98SE
  • Country: Country Flag

Posted 17 March 2013 - 06:24 PM

As mentioned above, none of my own compiled Debug versions would create a log. Following are 3 subsequent pieces of a single log created by your version posted above.
First chunk is from boot to moments before opening GOM Player 2.1.43.5119 (Total Commander was launched during this time).
Second chunk is from GOM startup to GOM forced kill (since it also got hung after an Alt+Tab).
Third chunk is after killing GOM process.

The same 'invalid directory error' happens to me all the time with the original project files, reason why I'm using the modified ones that do not move any files but just pick the right ones (hopefully) from their current locations. There is no space in my project path (D:\free\KernelEx-master8)

Spoiler

This post has been edited by Drugwash: 17 March 2013 - 06:27 PM


#48 User is offline   Leyok 

  • Newbie
  • Group: Members
  • Posts: 40
  • Joined: 18-November 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 18 March 2013 - 12:45 PM

I fixed most hangs and netapi32 and Frontpage Express is now working.

Here is the build :)

This post has been edited by Leyok: 23 March 2013 - 12:09 PM


#49 User is offline   piotrhn 

  • Newbie
  • Group: Members
  • Posts: 40
  • Joined: 17-July 06
  • OS:Windows 8 x64
  • Country: Country Flag

Posted 18 March 2013 - 01:41 PM

View PostLeyok, on 18 March 2013 - 12:45 PM, said:

I fixed most hangs and netapi32 and Frontpage Express is now working.

Here is the build :)


Hi, helpctr.exe crash on Windows Me + USP3
Spoiler


#50 User is offline   Leyok 

  • Newbie
  • Group: Members
  • Posts: 40
  • Joined: 18-November 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 18 March 2013 - 03:18 PM

Can you tell me where it crash (dll + base address) and how can I reproduce this ?

This post has been edited by Leyok: 18 March 2013 - 03:20 PM


#51 User is offline   piotrhn 

  • Newbie
  • Group: Members
  • Posts: 40
  • Joined: 17-July 06
  • OS:Windows 8 x64
  • Country: Country Flag

Posted 18 March 2013 - 03:42 PM

Helpctr crashes, when i try to run it, in UNICOWS.DLL

Spoiler


#52 User is offline   PROBLEMCHYLD 

  • The Resurrector for old Windows OS
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,470
  • Joined: 07-October 05
  • OS:98SE
  • Country: Country Flag

Posted 18 March 2013 - 04:02 PM

I tested the latest version and here are my results.

1. If you copy a file to the desktop, it DoNOT show up on the desktop, unless you right click the desktop and hit refresh.
2. If you log off and then log on without re-starting, you will NOT get the system tray icons. They DoNOT reappear.
3. NETAPI32.DLL display : link to missing export NetUserGetInfo error.

All other bugs I have reported seems to be fixed. Good work....... :w00t:

#53 User is offline   Drugwash 

  • MSFN Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,099
  • Joined: 21-June 06
  • OS:98SE
  • Country: Country Flag

Posted 18 March 2013 - 10:36 PM

Positive: project files are fixed, batch compiles now at first attempt without any changes whatsoever.
Negative: own builds (under 98SE and XP-SP3) still hang upon reboot, with no log created.

I've nailed this down to kexbases.dll. As soon as I replace mine with yours from latest package, system boots normally, but still no log file.

Further negatives:
- GOM Player's About window still loses mouse control and needs to be closed by keyboard
- my own toy MemPanel calculates mouse cursor position badly in Options - as soon as the skin ribbon is clicked, a much larger value is being sent to the program, causing the skin to dissapear. Upon exit, the settings ini file shows an out of range value (accepted are 1 to 32).

I believe the two are related. Upon uninstalling KernelEx, everything behaves correctly.

Questions:
- why doesn't the GitHub branch create any log? Is there any flag missing in the Debug project?
- why doesn't kexbases work, as long as it compiles without error on two different machines/operating systems?

#54 User is offline   PROBLEMCHYLD 

  • The Resurrector for old Windows OS
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,470
  • Joined: 07-October 05
  • OS:98SE
  • Country: Country Flag

Posted 19 March 2013 - 06:11 PM

:ph34r:

This post has been edited by PROBLEMCHYLD: 20 March 2013 - 06:19 AM


#55 User is offline   Leyok 

  • Newbie
  • Group: Members
  • Posts: 40
  • Joined: 18-November 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 20 March 2013 - 07:25 AM

View PostPROBLEMCHYLD, on 18 March 2013 - 04:02 PM, said:

I tested the latest version and here are my results.

1. If you copy a file to the desktop, it DoNOT show up on the desktop, unless you right click the desktop and hit refresh.
2. If you log off and then log on without re-starting, you will NOT get the system tray icons. They DoNOT reappear.
3. NETAPI32.DLL display : link to missing export NetUserGetInfo error.

All other bugs I have reported seems to be fixed. Good work....... :w00t:


1. I'm trying to find where is the bug, I don't actually know why it does that, is the same for KernelEx 4.5.2 ?
2. This is fixed (I added a check to prevent SYSTRAY.EXE from terminated)
3. I added it but didn't implement it.

And a STUB is when you export the function but isn't implemented (just return).

Quote

Positive: project files are fixed, batch compiles now at first attempt without any changes whatsoever.
Negative: own builds (under 98SE and XP-SP3) still hang upon reboot, with no log created.

I've nailed this down to kexbases.dll. As soon as I replace mine with yours from latest package, system boots normally, but still no log file.

Further negatives:
- GOM Player's About window still loses mouse control and needs to be closed by keyboard
- my own toy MemPanel calculates mouse cursor position badly in Options - as soon as the skin ribbon is clicked, a much larger value is being sent to the program, causing the skin to dissapear. Upon exit, the settings ini file shows an out of range value (accepted are 1 to 32).

I believe the two are related. Upon uninstalling KernelEx, everything behaves correctly.

Questions:
- why doesn't the GitHub branch create any log? Is there any flag missing in the Debug project?
- why doesn't kexbases work, as long as it compiles without error on two different machines/operating systems?


To create the log file, open up Core\debug.cpp then uncomment "#define WRITETOLOG" and comment all other defines.

When I have time, I'll find out why GOM Player's About window loses mouse control. You haven't got any problem with KernelEx 4.5.2, right ?
For MemPanel, it's odd because it doesn't come from GetCursorPos (the values are correct). I'll see more about it.

1) Can you explain more with the GitHub branch log?
2) I don't really know why it hangs on your side, be sure to replace every files with your new ones. Does someone can compile and uses the new files?

This post has been edited by Leyok: 20 March 2013 - 07:27 AM


#56 User is offline   PROBLEMCHYLD 

  • The Resurrector for old Windows OS
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,470
  • Joined: 07-October 05
  • OS:98SE
  • Country: Country Flag

Posted 20 March 2013 - 07:41 AM

@ Drugwash and coolman

Can one of you guys compile the latest repository. Wait, here is the catch. It needs to be compiled without PDH.DLL, MSIMG32.DLL, PSAPI.DLL. For starters, the SP has all of these files inside the SP3.CAB and they are the original Microsoft versions. Even if users don't use SP3.x, they can still copy the files to their system. PDH.DLL in KernelEX does NOT work at all. I tested a program a while back that required the PDH.DLL file. I got an error, this file is not compatible with your operating system, wrong version blah blah something. So I found a working version that gave a different message, The PDH.DLL is linked to missing export blah blah. What I'm saying is that the KernelEx versions of the files, regardless if some are stubs and some are full implementations. They are not equivalent to the originals included in SP. Many users have been reporting system crashes with SP3.19 and kernelEx. We all know that SP is pretty stable but KernelEx is not playing well with it.

#57 User is offline   Drugwash 

  • MSFN Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,099
  • Joined: 21-June 06
  • OS:98SE
  • Country: Country Flag

Posted 20 March 2013 - 08:16 AM

@ Leyok:

Quote

To create the log file, open up Core\debug.cpp then uncomment "#define WRITETOLOG" and comment all other defines.
Thank you, that was all I needed to know.

Quote

When I have time, I'll find out why GOM Player's About window loses mouse control. You haven't got any problem with KernelEx 4.5.2, right ?
None whatsoever - GOM works fine on my main 98SE machine with 4.5.2 and worked with previous versions too.

Quote

For MemPanel, it's odd because it doesn't come from GetCursorPos (the values are correct). I'll see more about it.
In MemPanel, I use two macro functions provided by AutoHotkey: MouseGetPos and ControlGetPos, then calculate relative position.
MouseGetPos, mx, my, winid, ctrl, 2
ControlGetPos, cX, cY,,, Static2, ahk_id %hSet%
skin := 1+(mx-cX)//8

The skin variable above should get a value between 1 and 32 (Static2's width is 256px).
MouseGetPos is set to retrieve coordinates relative to the active window, not the screen - maybe that's where the bug lies (the directive is set to CoordMode, Mouse, Relative). You can look through the AHK sources and see what API it uses for the two functions. I can provide the source code for MemPanel too, if you need it.

Quote

1) Can you explain more with the GitHub branch log?
Your reply about uncommenting the #define made it clear already. I had wrongly assumed the WRITETOLOG was enabled by default in GitHub.

Quote

2) I don't really know why it hangs on your side, be sure to replace every files with your new ones.
I deploy every new GitHub pull in a new folder, so it wouldn't interfere with old files/settings. Everything is being built from scratch and if I rebuild, I always clean the project first.
I'll build with WRITETOLOG enabled, see where it stumbles. Might take a while, I'm not feeling well these days.

@ PROBLEMCHYLD:
Please provide the names (and links, if possible) to those applications that would not work with PDH.DLL, MSIMG32.DLL and PSAPI.DLL from KernelEx, so I could test them myself.
Currently I can build KernelEx but for some reason, one of its libraries (kexbases.dll) hangs my test system. I can replace it with Leyok's version, for testing purposes though.

EDIT: @ Leyok
I've enabled logging in my build. Apparently, OpenWindowStationA_new() fails in my kexbases.dll, then it gets stuck loading KEXBASEN again (as compared to a working log posted somewhere above):
Spoiler

Please note the code I built is the one before you disabled the Unicode API.

This post has been edited by Drugwash: 20 March 2013 - 10:00 AM


#58 User is offline   PROBLEMCHYLD 

  • The Resurrector for old Windows OS
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,470
  • Joined: 07-October 05
  • OS:98SE
  • Country: Country Flag

Posted 20 March 2013 - 08:41 AM

View PostDrugwash, on 20 March 2013 - 08:16 AM, said:

@ PROBLEMCHYLD:
Please provide the names (and links, if possible) to those applications that would not work with PDH.DLL, MSIMG32.DLL and PSAPI.DLL from KernelEx, so I could test them myself.
Currently I can build KernelEx but for some reason, one of its libraries (kexbases.dll) hangs my test system. I can replace it with Leyok's version, for testing purposes though.
http://www.zabbix.co...ows.i386.tar.gz

If you have the original versions in the system directory, delete PDH.DLL and PSAPI.DLL. Install KernelEx and try run zabbix_agentd.exe. After you done that, uninstall KernelEx and place PDH.DLL and PSAPI.DLL in system directory from SP3.CAB and you'll see the difference in errors. I haven't really found one for MSIMG32.DLL, but I would assume it has the same issues as the other files.

#59 User is offline   Drugwash 

  • MSFN Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,099
  • Joined: 21-June 06
  • OS:98SE
  • Country: Country Flag

Posted 20 March 2013 - 12:41 PM

That thing wouldn't work with 4.5.2 either.
It requires PdhLookupPerfNameByIndexA and PdhOpenQueryA in PDH.DLL, which are not available in the SP3 version.
With KernelEx 4.5.2, those functions appear available, but it refuses to load PDH.DLL through DLL_PROCESS_ATTACH.
Furthermore, in KEx 4.5.2, I notice PSAPI.DLL can't properly recognize kernelex.dll in its rightful location (C:\Windows\KernelEx) - as shown by Dependency Walker - but it does when kernelex.dll is copied to C:\Windows\System.

#60 User is offline   PROBLEMCHYLD 

  • The Resurrector for old Windows OS
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,470
  • Joined: 07-October 05
  • OS:98SE
  • Country: Country Flag

Posted 20 March 2013 - 01:00 PM

View PostDrugwash, on 20 March 2013 - 12:41 PM, said:

That thing wouldn't work with 4.5.2 either.
It requires PdhLookupPerfNameByIndexA and PdhOpenQueryA in PDH.DLL, which are not available in the SP3 version.
With KernelEx 4.5.2, those functions appear available, but it refuses to load PDH.DLL through DLL_PROCESS_ATTACH.
Furthermore, in KEx 4.5.2, I notice PSAPI.DLL can't properly recognize kernelex.dll in its rightful location (C:\Windows\KernelEx) - as shown by Dependency Walker - but it does when kernelex.dll is copied to C:\Windows\System.
My point exactly. It doesn't work at all. I know the app has missing exports, as I posted above, the thing is KernelEx forces Windows to use its version and it don't work. At least the one in the SP does work and it does load properly, maybe not for that particular app because of missing functions. There was other apps I tested that required PDH.DLL, thats why I added it. This is why I asked you to compile a version without the particular files. The ones in the Windows\System directory works just fine. Just because a dummy file was created and has stubs and implementations, doesn't mean its suitable, especially if they don't work.
So you pretty much just confirm the KEX version doesn't load/work or whatever label you put on it. Also the PdhLookupPerfNameByIndexA and PdhOpenQueryA, I never got this message, I always got a PSAPI.DLL missing export message

This post has been edited by PROBLEMCHYLD: 20 March 2013 - 01:10 PM


Share this topic:


  • 8 Pages +
  • 1
  • 2
  • 3
  • 4
  • 5
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy