search for: onunload

Displaying 20 results from an estimated 47 matches for "onunload".

Did you mean: onload
2007 Nov 28
0
7 commits - configure.ac libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c test/trace
...| 7 ++- libswfdec/swfdec_movie.c | 57 ++++++++++----------------- libswfdec/swfdec_movie.h | 3 - libswfdec/swfdec_sprite_movie.c | 4 - test/trace/Makefile.am | 18 ++++++++ test/trace/remove-child-onUnload-5.swf |binary test/trace/remove-child-onUnload-5.swf.trace | 4 + test/trace/remove-child-onUnload-6.swf |binary test/trace/remove-child-onUnload-6.swf.trace | 6 ++ test/trace/remove-child-onUnload-7.swf |binary test/trace/remove-child-onUnload-7.swf.trace | 6 ++ tes...
2006 Feb 08
2
Using .onUnload() to unload compiled code
If one wants to unload compiled code for a package containing a namespace, my understanding is that .onUnload() should be used, with a call to library.dynam.unload(). This is used in e.g., the stats and methods packages, but it appears to me that the compiled code is not being unloaded when the package is detached(). Am I misunderstanding something? Best, Jim > search() [1] ".GlobalEnv"...
2012 Jul 24
1
Using .onUnload to unload DLLs
I've noticed that many of the "base" R packages have an .onUnload() function which automatically unloads compiled shared libraries with library.dynam.unload(). For example: > stats:::.onUnload function (libpath) library.dynam.unload("stats", libpath) <bytecode: 0x1033b9c30> <environment: namespace:stats> I've noticed that many othe...
2005 Nov 11
0
(kind of OT) Equivalent to onunload or onbeforeunload in Safari?
...following a link, closing a window, or pressing the back or forwards buttons. So ... I do some research, and found this Web page: http://www.4guysfromrolla.com/webtech/100604-1.shtml which describes using onbeforeunload to show a confirmation (I''m doing a form submit, so it seems like onunload would work, too). This works in Firefox and IE. Safari, however, blithely ignores this. I know a lot of Rails developers are Mac users so I was hoping someone knows of a solution to this issue? FYI, I tried Safari 2.02 on Tiger. Thanks! Jen
2010 Sep 16
1
Possible bug or annoyance with library.dynam.unload()
Hello, I have a package with a namespace. Because I use Roxygen that overwrites the NAMESPACE file each time it is run, I use a R/zzz.R file with an .onLoad() and .onUnload() functions to take care of loading and unloading my shared library. The problem: if I load my library from a local directory, then the unloading of the package fails, e.g: # loads fine >library(Foo, lib.loc=".Rcheck") >unloadNamespace("Foo") Warning message: .onUnload...
2013 Nov 06
1
How to do package cleanup: hooks .onUnload, R_unload_mylib, .onDetach are not called on quit
Hi, it seems that the package hooks .onLoad and its C++ pendant R_unload_mylib are actually not called when R quits, but only when explicitly calling detach('package:mylib', unload = TRUE). Maybe this is platform specific, I'm on Ubuntu 13.10 - R 3.0.2 (see below). * is there a mechanism that a package can use to effectively do some cleanup on standard exit, such as calling
2010 Nov 12
1
unloading compiled code.
...ing the code will fix it. I've read the documentation and it appears that there are several ways to do this? What is the popper accepted current standard for unloading compiled code? The options as I understand them are: 1. dyn.unload 2. library.dynam.unload used with either A. .Last.lib B. .onUnload If it makes a difference my package does use a NAMESPACE so the package is loaded through useDynLib. Thanks, Andrew Redd
2006 Jul 10
4
Detecting the close of a browser
Hi, I noticed that www.meebo.com has the ability that when you close the browser during a session, it prompts you , are you sure you want to close? How does it do this? I would like to use such an ability , so that if the user preempts a close on the browser, I can kill all threads I have running for that user. Thanks -- Posted via http://www.ruby-forum.com/.
2009 Mar 31
4
what is the preferred method to create a package local variable?
for the moment, I'm using: .onAttach <- function(libname, pkgname) { .bbg.db.conn <<- dbConnect(dbDriver("PostgreSQL"), user="blah","blah") } .onUnload <- function(libpath) { dbDisconnect(.bbg.db.conn) } which results in a hidden global variable in the global environment. I would prefer to make the assignment only in the package namespace. I've looked at assignInNamespace, but I can't seem to make it work. Is there a preferred m...
2008 Apr 24
4
Scriptaculous Help (page exit effects)
I was wondering if it was possible in Prototype/Scriptaculous to run an effect when a link is clicked, then go to that page, or if it was possible to have an effect run when the page unloads. I have tried <body onunload="new Effect.Fade("whatever");> and some prototype page exit events, could get a alert("") function to work, but not the effects. Any ideas? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups &qu...
2007 Dec 18
2
Changes to 'refs/tags/0.5.5'
...t rid of will_be_removed member and replace it with checking state make swfdec_movie_queue_script not return TRUE/FALSE make glib warnings always fatal make movie deletion work properly add test for remove stuff add a test where only a child of the removed movie has an onUnload function first steps at redoing mouse input. port widget to new API only handle single clicks don't segfault if we don't have a movie typo check event receiving by calling a Movie vfunc add swfdec_as_object_has_variable() add swfdec_player_is_...
2016 Mar 25
1
library.dynam.unload
The survival package has a firstlib.R file that I had forgotton and just reviewed. After deleting several bits which had a use 10 years ago during my Splus to R transition, the only thing remaining is .onUnload <- function(libpath) library.dynam.unload("survival", libpath) Does this bit of code still serve a purpose? Can I toss it? Terry T.
2007 Nov 28
0
59 commits - libswfdec-gtk/swfdec_gtk_widget.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_button.c libswfdec/swfdec_button.h libswfdec/swfdec_button_movie.c libswfdec/swfdec_button_movie.h libswfdec/swfdec_event.c
...-movie-7.swf.trace | 5 test/trace/mouse-movie-below-nonevent-movie-8.swf |binary test/trace/mouse-movie-below-nonevent-movie-8.swf.act | 17 test/trace/mouse-movie-below-nonevent-movie-8.swf.trace | 5 test/trace/mouse-movie-below-nonevent-movie.as | 27 + test/trace/onUnload-prototype-5.swf |binary test/trace/onUnload-prototype-5.swf.trace | 4 test/trace/onUnload-prototype-6.swf |binary test/trace/onUnload-prototype-6.swf.trace | 4 test/trace/onUnload-prototype-7.swf |bi...
2006 Aug 16
1
How to pass an array to a javascript function.
...t.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script type="text/javascript" language="Javascript" src="init_demo_report.js"> </script> </head> <body onload="zip_map(<%= @zip_geo %>)" onunload="GUnload()"> .... .... .... </body> </html> THE FILE "init_demo_report.js" contains this code: function zip_map(zip_geo) { .... .... .... } Any help will be appreciated, thank you. -- Posted via http://www.r...
2007 Jan 16
2
on.exit called on loading ?
I just found out that an .onLoad() function such as this stylized one (where I just renamed some identifiers) .onLoad <- function(lib, pkg) { require(zoo, quiet=TRUE, warn.conflicts=FALSE) library.dynam("foolib", pkg, lib ) if (.Platform$OS.type != "windows") { initSomeServices() } if (.Platform$OS.type != "windows") {
2011 Mar 11
1
hook for when R quits
...Is there any way that a package can listen for when R quits? The Qt stuff is hooking into platform-specific event loops and when those die unexpectedly (from the perspective of Qt), it aborts, causing an annoying error dialog. If we could catch when R is killed, we could cleanup, like we do with .onUnload. Thanks, Michael [[alternative HTML version deleted]]
2004 Apr 28
2
Rtemp directories accumulating over time
Hola! There is a nuisance that the number of directories with name starting Rtmp (and always empty) in my temp directory is increasing over time. I put the following in my .Rprofile: tmp0001 <- tempdir() setHook( packageEvent("base","onUnload"), function(...) unlink( tmp0001, recursive=TRUE) ) which solves part of the problem, but not all. So there are also other tmpdirs made by R. Why, where, and why are they not removed at exit (when their content are removed)? Kjetil Halvorsen
2017 Sep 28
1
rgl crash on windows 7
...ears with the message: R for windows gui frontend has stopped working I suspect a conflict problem with a dll, but I'm not sure how to identify if this is the problem since R is crashing immediately. Interestingly, when we start R and do NOT load rgl, but type this WITHOUT parentheses: rgl:::.onUnload We get the same crash. On my laptop I can load rgl just fine, after loading rgl I see: R> getLoadedDLLs() Filename Dynamic.Lookup base base FALSE methods C:/Program Files/R/R-3.4.1/library/methods/libs/x64/methods.dll FALSE utils C:/Program Files/R/R-3.4.1...
2007 Aug 22
0
Branch 'vivi' - 2 commits - libswfdec/swfdec_movie.c test/trace
...st/trace/remove-depths.as @@ -0,0 +1,15 @@ +// makeswf -v 7 -s 200x150 -r 1 -o remove-depths.swf remove-depths.as + +depths = [ 0, -16384, -16385, 1000 ]; +for (i = 0; i < depths.length; i++) { + bla = createEmptyMovieClip ("foo" + i, depths[i]); + bla.depth = bla.getDepth (); + bla.onUnload = function () { + trace (this.depth + " => " + this.getDepth ()); + }; + bla.removeMovieClip (); +} +// We print that here so we know the onUnload gets triggered later +trace ("Check how removing movieclips affects depth"); + +loadMovie ("FSCommand:quit", &quot...
2005 Jun 28
1
Thomas script.aculo.us (important bug and add ons)
...e (has a reference to) -> element (has a reference to) -> original function/class instance For whatever reason, MSIE can''t dereference this. Some workaround you can use are: (a) clean up the reference by removing the reference before the page is unloaded by attaching cleanup to the onunload event. Namely, you could set the references to the element to null before page unloads. (b) Don''t store the element in the function/class at all. Instead, just store the "id" of the element. This works pretty well for me actually. In the "prototype" model, you could ju...