# How to open a dll on multiple workers with Distributed.jl

**URL:** <https://discourse.julialang.org/t/how-to-open-a-dll-on-multiple-workers-with-distributed-jl/69997>\
**Category:** General Usage\
**Tags:** parallel, distributed\
**Created:** [October 18, 2021, 6:36pm UTC](https://discourse.julialang.org/t/how-to-open-a-dll-on-multiple-workers-with-distributed-jl/69997 "2021-10-18T18:36:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![guilhermebodin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/guilhermebodin/32/6982_2.png) [@guilhermebodin](https://discourse.julialang.org/u/guilhermebodin)\
**Post date:** [October 18, 2021, 6:36pm UTC](https://discourse.julialang.org/t/how-to-open-a-dll-on-multiple-workers-with-distributed-jl/69997/1 "2021-10-18T18:36:03Z")

</div>

Hi,

I am trying to open a dll on multiple workers with the following code

```julia
using Distributed

addprocs(1)
nprocs() # 2

@everywhere using Libdl
@everywhere p = Libdl.dlopen("libscsdir")

@fetchfrom 1 p # Correct
@fetchfrom 2 p # NULL pointer

```

The problem with this implementation is that apart from worker 1 all pointers are NULL. Is there another way to load the dll on multiple workers?

In the end I will use the dll to perform some complicated operations possibly in loops.

[Link to dll](https://www.dropbox.com/s/bn822pa7m891v9x/libscsdir.dll?dl=0)
