MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: DynamicModule not saving reliably a variable between

  • To: mathgroup at smc.vnet.net
  • Subject: [mg109209] Re: DynamicModule not saving reliably a variable between
  • From: Michael <michael2718 at gmail.com>
  • Date: Sat, 17 Apr 2010 06:03:50 -0400 (EDT)

> My current workaround is to additionally save the jobs list to a file jobs.m
>
> Button["Add job", jobs = savedJobs =..; Save["jobs.m", savedJobs], Method -> "Queued"]
>
> and to load this file during initialization

I found this bug as well and reported it to Wolfram along with a
minimal test case.  It is indeed a bug and I guess hopefully they will
be fixing it at some point.  (How do I know when they have?  How do I
get the fix?)

My question is how to work around this.  I want to create a
work-around that does not require clicking an extra button.  However I
cannot seem to find any kind of "save hook" that will allow me to
execute code when a notebook is saved.  Is there such a thing?  (And
if not, why not? :-)

Thanks,

Michael


  • Prev by Date: Re: How to simplify "Integrate[2 f[x], {x, 0, 1}]/2" to "Integrate[f[x],
  • Next by Date: Re: integrate log*sinc
  • Previous by thread: LocatorAutoCreate in 2-parameter Manipulate?
  • Next by thread: Generalization of Variables ?