Creating MAX Screensaver

BlitzMax Forums/BlitzMax Programming/Creating MAX Screensaver

I am trying to build a screensaver in Max. I mean a real screensaver with a config-dialog and a preview-window also. so only changing the .exe to .scr will not be sufficient ;)

i found this code which seems to have all features i need:

http://www.blitzmax.com/Community/posts.php?topic=48729#542024

But it is rather old as it still uses FlushMem.
I finally got it to compile under Max 1.20 when i:
1. changed FlushMem to GCCollect
2. put some fake arguments in the commandline (because AppArgs[2] gives me an error otherwise)

Now it shows the config dialog and the preview allright.

But it does not start the screensaver. also clicking "Preview" in the windows-screensaver-dialog runs the saver silently, gathering only lots of memory in the taskmanager.

I also tried the example beneath the topic and this one works ok. I do not have the code but i guess it was compiled with an old MAX version also.

Can someone help me converting this code to work with the latest version MAX (v. 1.20) ?