Re: FVWM: changing functions dynamically

From: Jakob Schiotz <schiotz_at_fysik.dtu.dk>
Date: Fri, 14 Feb 97 10:15:41 +0100

Mark Krischer <mkrisch_at_bbn.com> wrote:
> i'm trying to do this:
>
> # Screen Saver and Lock functions
> DestroyFunc ScreenSaver
>
> AddToFunc ScreenSaver "I" Function ScreenSaver1
>
> AddToFunc ScreenSaver1 "I" Exec xlock -mode flame -delay 5000
> -nolock
> + "I" DestroyFunc ScreenSaver
> + "I" AddToFunc ScreenSaver "I" Function ScreenSaver2
>
        [ ... ]
> i can get the screen saver to start, but doing so kills fvwm2. what am
> i doing wrong?
>

You are destroying a running function. When ScreenSaver1 returns it
returns to ScreenSaver, but that function no longer exist (a new
function exists, but it may be somewhere else in memory). Maybe the
memory once used by the first instance of ScreenSaver has been
reclaimed and used for something else.

Jakob

--
Jakob Schiotz                    !  Email: schiotz_at_fysik.dtu.dk
CAMP, Department of Physics      !  WWW: http://www.fysik.dtu.dk/~schiotz/
Technical University of Denmark  !  
DK-2800 Lyngby, Denmark          !  
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Fri Feb 14 1997 - 03:16:23 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:00 BST