# Screensaver Issues - Kernel32.DLL Error

This topic is 4803 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

My Screensaver can be installed (by Install option when right-clicked on the file with Explorer) and run correctly for the first time while being in Display Properties Window. I can run it here (Dialog and Preview working) as many times as I want. But when I click Apply and return back to Display Properties, it crashes under WinME with Kernel32.DLL error. It doesnt even start my application because very first line of WinMain is creation of LOG.TXT and it if would crash inside my application, the error message would state that its inside. Just to be sure, I put try-catch handler into WinMain but it doesnt even get to WinMain. Whats even more weird is, that the screensaver runs itself after specified time (alwyas in XP, less often in WinME where it crashes). However, WinXP doesnt show this Kernel32.DLL error when being for second time in Display Properties. It just does nothing (but at leat it wont craash under XP). Any ideas ? VladR www.avenger.sk

##### Share on other sites
could be a problem with the path the screensaver is located. If you right click and select install, windows will use the *.scr file from where you 'installed' it. Maybe you got something in the pathname that windows doesnt like. Other than that i cant think of anything that could stop your screensaver from running... or it is a problem with your logging code? try to disable it...

T2k

##### Share on other sites
Well, I install it after copying into Windows\System folder, so its all there. Logging surely cant create crashes itself. I really dont know.

##### Share on other sites
Screensavers don't use WinMain(). They use ScreenSaverProc().

##### Share on other sites
Quote:
 Original post by Anonymous PosterScreensavers don't use WinMain(). They use ScreenSaverProc().

They use exported ScreenSaverProc only when you use the "scrnsave.lib" as a basis for your screensaver.
Since I dont use "scrnsave.lib", my code (after constructors of all classes that work OK) starts with WinMain. It just doesn`t get there at all (because first line creates LOG.TXT).

Still thanks for the idea though.

Any other ideas ?

1. 1
2. 2
frob
14
3. 3
4. 4
5. 5
Rutin
12

• 12
• 12
• 57
• 14
• 15
• ### Forum Statistics

• Total Topics
632115
• Total Posts
3004189

×