Skip to content

Instantly share code, notes, and snippets.

@stla
Created October 10, 2017 10:04
Show Gist options
  • Save stla/8926d42cf18e71dcac0f03705d55cff0 to your computer and use it in GitHub Desktop.
Save stla/8926d42cf18e71dcac0f03705d55cff0 to your computer and use it in GitHub Desktop.
---
title: "Bug DLL"
author: "Stéphane Laurent"
date: "10 octobre 2017"
output: html_document
editor_options:
chunk_output_type: console
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
```{r}
dll <- "smallDLL.dll"
dyn.load(dll)
.C("HsStart")
```
```{r}
.C("addOne", x=1L, result=0L)$result
```
```{r}
dyn.unload(dll)
```
```{r}
dll <- "smallDLL.dll"
dyn.load(dll)
.C("HsStart")
```
```{r}
.C("addOne", x=1L, result=0L)$result
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment