search for: releaseobject

Displaying 9 results from an estimated 9 matches for "releaseobject".

2014 Mar 07
0
Repost: (apologies for HTML post) A question about multiple(?) out of order ReleaseObject
...emails seem to go in HTML form. Hello, This is a question that probably reveals my lack of understanding. In a C function (call it cfunc), i created a SEXP, called S, and then called R_PreserveObject on S. I returned the SEXP to the calling R function (call it rfunc). Note, I didn't call R_ReleaseObject on S. v <- .Call("cfunc") So, are the following statements correct 1. S is 'doubly' protected from the GC by being associated both with 'v' and because it has been added to the precious list (via a call to R_PreserveObject without ReleaseObject being called) 2. I...
2014 Mar 07
0
Many apologies: last post: A question about multiple(?) out of order ReleaseObject
...yet figured gmail web interface) Hello, This is a question that probably reveals my lack of understanding. In a C function (call it cfunc), i created a SEXP, called S, and then called R_PreserveObject on S. I returned the SEXP to the calling R function (call it rfunc). Note, I didn't call R_ReleaseObject on S. v <- .Call("cfunc") So, are the following statements correct 1. S is 'doubly' protected from the GC by being associated both with 'v' and because it has been added to the precious list (via a call to R_PreserveObject without ReleaseObject being called) 2. I...
2014 Mar 06
2
A question about multiple(?) out of order ReleaseObject
Hello, This is a question that probably reveals my lack of understanding. In a C function (call it cfunc), i created a SEXP, called S, and then called R_PreserveObject on S. I returned the SEXP to the calling R function (call it rfunc). Note, I didn't call R_ReleaseObject on S. v <- .Call("cfunc") So, are the following statements correct 1. S is 'doubly' protected from the GC by being associated both with 'v' and because it has been added to the precious list (via a call to R_PreserveObject without ReleaseObject being called) 2. I...
2017 Sep 21
2
calling R API functions after engine shutdown
Hi! We?ve recently come across an example where a package (minqa) creates an Rcpp Function object in a static variable. This causes R_ReleaseObject to be called by the destructor at a very late point in time - as part of the system exit function: static Function cf("c"); I?m wondering if that is considered to be ?safe?? Is the R engine supposed to stay in a state where calls to API functions are valid, even after it has shut down?...
2008 Feb 22
1
Calling R_PreserveObject from embedded R
...have a problem with the reference handling of the R objects. I've followed this strategy: every time I call a function in R and it answers me a SEXP, I called R_PreserveObject(sexp), and wrap it with a Smalltalk object. Whenever the Smalltalk object dies, I release the R object by calling R_ReleaseObject(sexp). This seems to handle well the life cycle, but makes the running process to use a growing and a never ending amount of memory. Actually, after experimenting a while, I isolated the problem to iterate over a loop which all it does is create an expresion for a number, call PreserveObject and...
2017 Sep 21
0
calling R API functions after engine shutdown
Calling R_ReleaseObject in a C++ destructor is not reliable - it can be bypassed by a non-local return, such as an error. Generally in R one cannot use C++ destructors reliably for anything that the R runtime wouldn't do on its own in case of a non-local return. A destructor that calls just UNPROTECT, in a way tha...
2011 Feb 07
1
rjava does not install
...use in this function) Rglue.c:157: error: expected ?;? before ?res? Rglue.c:158: error: ?res? undeclared (first use in this function) Rglue.c:159: error: expected ?;? before ?go? Rglue.c:161: error: ?go? undeclared (first use in this function) Rglue.c:173: warning: implicit declaration of function ?releaseObject? Rglue.c: At top level: Rglue.c:214: error: expected ?)? before ?*? token Rglue.c:380: error: expected ?)? before ?*? token Rglue.c:390: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?R1par2jvalue? Rglue.c: In function ?RcallMethod?: Rglue.c:410: error: ?jvalue? undeclared (first...
2019 Nov 29
0
Wine release 4.21
...ll path. dmstyle: Improved tracing of the DMUS_OBJECTDESC structure. dmloader: Stop after find first matching object. dmloader: Rewrite cache object lookup. dmloader: Rewrite IDirectMusicLoader8 CacheObject using find_cache_object. dmloader: Rewrite IDirectMusicLoader8 ReleaseObject using find_cache_object. dmloader: Support DMUS_OBJ_MEMORY cache lookups. dmime: Trace pbMemData/llMemLength on the same line. d3dx9: Implement D3DXCreateFragmentLinker[Ex](). Andrey Gusev (3): sapiaut.idl: Fix a typo. crypt32: Fix a typo in comment. ddraw/tests...
2009 Jul 15
2
rJava fails compilation on R-2.9.1 but not R-2.7.1 on Debian Lenny
...use in this function) Rglue.c:157: error: expected ?;? before ?res? Rglue.c:158: error: ?res? undeclared (first use in this function) Rglue.c:159: error: expected ?;? before ?go? Rglue.c:161: error: ?go? undeclared (first use in this function) Rglue.c:173: warning: implicit declaration of function ?releaseObject? Rglue.c: At top level: Rglue.c:214: error: expected ?)? before ?*? token Rglue.c:380: error: expected ?)? before ?*? token Rglue.c:390: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?R1par2jvalue? Rglue.c: In function ?RcallMethod?: Rglue.c:410: error: ?jvalue? undeclared (first u...