Re: [Rcom-l] Passing a COM object pointer does not work in the new rcom package

2008-10-29 Thread Thomas Baier
Dear Vilmos, thanks for your mails and the very good analyses of the problem(s). I've prepared a version of rscproxy including fixes for both problems. The new version of rscproxy should be available from CRAN soon. The following code (slightly changed your code) now works: XL<-comGetObjec

[Rcom-l] Passing a COM object pointer does not work in the new rcom package

2008-10-29 Thread Prokaj Vilmos
Dear Thomas, I think I finally catched the bug. In the bdx_com.c file in the BDXScalar2Variant function the BDX_HANDLE case was handled in the following way: case BDX_HANDLE: { LPSTREAM lStream = pBDXData->data.raw_data[0].ptr; void* lTmpPtr = (void*) V_DISPATCH(pVariantD

[Rcom-l] Passing a COM object pointer does not work in the new rcom package

2008-10-28 Thread Prokaj Vilmos
Dear Thomas, I switched to R-2.8.0, and I had to realize as others also reported in this mailing list, that under R-2.8.0 the rcom package does not work properly. My concrete problem was that the following code (a similar to that one) caused a crash of R. XL<-comGetObject("excel.application