search for: nprotect

Displaying 15 results from an estimated 15 matches for "nprotect".

Did you mean: protect
2015 Aug 21
3
unset() function?
...unset(name) would remove 'name' from the current evaluation frame and return its value. It allowed you to safely avoid some memory copying when calling .C or .Call. E.g., suppose you had C code like #include <R.h> #include <Rinternals.h> SEXP add1(SEXP pX) { int nProtected = 0; int n = Rf_length(pX); int i; double* x; Rprintf("NAMED(pX)=%d: ", NAMED(pX)); if (NAMED(pX)) { Rprintf("Copying pX before adding 1\n"); PROTECT(pX = duplicate(pX)); nProtected++; } else { Rprintf("Cha...
2008 May 28
2
nProtect GameGuard Engine
perhaps this is an old question, but i have not found any good way to make gameguard active on linux. particularly i'm trying to play rohan that use gameguard; i start the loader that downloads and installs the updates, then it starts the gameguard updater and the console prints the following: Code: fixme:win:WIN_CreateWindowEx Parent is HWND_MESSAGE fixme:wininet:INET_QueryOptionHelper
2007 Feb 13
2
anyone has C++ STL classes stability issue if used with R
...ns; }; typedef priority_queue<Pixel> PixelPrQueue; SEXP lib_filterInvWS (SEXP x) { SEXP res; int i, j, index; double val; PixelPrQueue pq; int nx = INTEGER ( GET_DIM(x) )[0]; int ny = INTEGER ( GET_DIM(x) )[1]; int nz = INTEGER ( GET_DIM(x) )[2]; int nprotect = 0; PROTECT ( res = Rf_duplicate(x) ); nprotect++; // Pixel px; for (int im = 0; im < nz; im++ ) { double * src = &( REAL(x)[ im * nx * ny ] ); double * tgt = &( REAL(res)[ im * nx * ny ] ); for ( j = 0; j < ny; j++ ) for...
2015 Aug 22
0
unset() function?
...; from the current evaluation > frame and return its value. It allowed you to safely avoid > some memory copying when calling .C or .Call. > > E.g., suppose you had C code like > #include <R.h> > #include <Rinternals.h> > SEXP add1(SEXP pX) > { > int nProtected = 0; > int n = Rf_length(pX); > int i; > double* x; > Rprintf("NAMED(pX)=%d: ", NAMED(pX)); > if (NAMED(pX)) { > Rprintf("Copying pX before adding 1\n"); > PROTECT(pX = duplicate(pX)); nProtected++; > } el...
2007 May 22
2
inline C/C++ in R: question and suggestion
...required, I use randomly generated values instead of images, but the output it quite obvious. After installing "inline" the example should just work by copy-pasting. Best and thanks in advance, Oleg code <- character(17) code[1] <- " SEXP res;" code[2] <- " int nprotect = 0, nx, ny, nz, x, y;" code[3] <- " PROTECT(res = Rf_duplicate(a)); nprotect++;" code[4] <- " nx = INTEGER(GET_DIM(a))[0];" code[5] <- " ny = INTEGER(GET_DIM(a))[1];" code[6] <- " nz = INTEGER(GET_DIM(a))[2];" code[7] <- " doubl...
2009 Apr 13
2
Gameguard ruins wine?
...WINE (or Cedega) cannot correctly emulate the environment needed for gameguard to run which causes Cabal to exit with an error. You should check the WINE (and Cedega) websites for other people views/experiences trying to run any gameguard protected game on linux, none of them work. > > Until nprotect design their system for linux you need to run windows. Is that true?
2007 Oct 05
1
Sklyar's inline package: how to return a list?
...9.5 > funx( a=my.mat ) [,1] [,2] [,3] [1,] -1.5 -4.5 -7.5 [2,] -2.5 -5.5 -8.5 [3,] -3.5 -6.5 -9.5 > # -------------------------------------------------------------------------------------------------------------------------- library( inline ) c.code <- " SEXP res; int nprotect = 0, nx, ny, x, y; double *dptr, *resptr, sum; PROTECT(res = Rf_duplicate(a)); nprotect++; nx = INTEGER(GET_DIM(a))[0]; ny = INTEGER(GET_DIM(a))[1]; dptr = REAL(a); resptr = REAL( res ); sum = 0.0; for (x = 0; x < nx; x++) for (y = 0; y < ny; y++) { resptr[ x +...
2013 Aug 27
1
Error in simulation. NAN
...apt_k_r, SEXP mean_adapt_k_r, SEXP sim_acc_k_r, SEXP ep_k_r, SEXP acc_index_k_r // ){ /***************************************** Varie ed eventuali *****************************************/ // indici int i,j,k,l,h,t,f,info,MCMC_iter,MCMC_iter2; int nProtect= 0; int indice_adapt=0; double duepi = (2*M_PI); // costanti char const *lower = "L"; char const *upper = "U"; char const *ntran = "N"; char const *ytran = "T"; char const *rside = "R"; char const *lside...
2015 Feb 05
2
Invalid read of size 8
...{ for(j=i;j<nLC;j++) { Rprintf("%f ", MatCovInv[k][i*nLC+j]); } Rprintf("\n"); } Rprintf("\n\n"); } After that i define an R variable int nProtect =0; SEXP zDP_out_r; PROTECT(zDP_out_r = allocMatrix(INTSXP, nT, nSamples_save)); nProtect++; int *zDP_out_P = INTEGER(zDP_out_r); and using the same syntax as before for(k=0;k<K+1;k++) { Rprintf("Later Cov Extra %i \n",k); for(i=0;i&...
2011 Apr 18
3
Producing Another Test
I?d like to use wine to play Grand Chase and Cross Fire games. Unfortunately, these games are classified in a Garbage Area. Then, what can I do to figure out it?
2013 Apr 09
2
Behaviors of diag() with character vector in R 3.0.0
Dear all, According to CHANGES IN R 3.0.0: o diag() as used to generate a diagonal matrix has been re-written in C for speed and less memory usage. It now forces the result to be numeric in the case diag(x) since it is said to have 'zero off-diagonal entries'. diag(x) does not work for character vector in R 3.0.0 any more. For example, v <- c("a",
2007 Oct 18
3
append/concatenate an element to a list in C-language
dear people, i need to code a function in C working in R and receives two R SEXP objects as parameters, where one is a list and another is a vector of integers: void f(SEXP list, SEXP vector) { ... return list; } and it should return the given list with the integer vector concatenated at the end (as the last element of the list). the list can be really big so i would not like to create a
2019 Mar 03
0
Wine release 3.0.5
...ool) crash: Unhandled Exception: System.NotImplementedException at Windower.UI.Views.RootView.OnSourceInitialized (DwmExtendFrameIntoClientArea should return S_OK) 45880 Multiple PC/SC applications crash on unimplemented function winscard.dll.SCardCancel (Aruba key, SmartCard test apps) 45910 nProtect GameGuard used by multiple MMORPG games crashes on unimplemented function wevtapi.dll.EvtExportLog (4Story, Phantasy Star Online 2) 45913 tchar.h: using the macro _sntprintf leads to an undefined reference to snwprintf; macro should resolve to _snwprintf 45915 x64dbg/x32dbg crash during shutd...
2018 Oct 12
0
Wine release 3.18
...called 45830 Fifa 19 Demo refuses to launch past the launcher 45880 Multiple PC/SC applications crash on unimplemented function winscard.dll.SCardCancel (Aruba key, SmartCard test apps) 45891 Steam crashes at launch with "GetQueuedCompletionStatusEx() failed: 120" error 45910 nProtect GameGuard used by multiple MMORPG games crashes on unimplemented function wevtapi.dll.EvtExportLog (4Story, Phantasy Star Online 2) 45915 x64dbg/x32dbg crash during shutdown on unimplemented function msvcr120.dll.??0_Scoped_lock at _NonReentrantPPLLock@details at Concurrency@@QAE at AAV123@@Z...
2019 May 10
0
Wine release 4.8
...ltiple kernel drivers crash during load/relocation (relocation entry crosses page boundary)(PMP Exam Version 7 CrypKey, Age of Wushu SDProtect DRM, StarForce v3) 29460 Multiple kernel drivers crash in entry due to ntoskrnl.exe IoGetCurrentProcess() being a stub (Ruijie Supplicant Su1xDriver.sys, nProtect GameGuard/Tachyon Kernel Control Driver) 31101 ScoobyRom v0.6.x-0.8.x (.NET 4.0 app) fails to start with Wine-Mono 31350 Multiple .NET 3.x WPF applications crash in Vista/Win7 mode due to dwmapi.DwmGetTransportAttributes stub returning E_NOTIMPL (T-Online Mediencenter Assistent, Valil.Chess,...