You are not logged in.

#1 2008-12-04 10:29:43

Envil
Member
Registered: 2008-11-18
Posts: 52

dlopen() and variables in the library

Is there anyway to have permant variables inside a library loaded with dlopen()?

Currently whenever i run the function inside my library all the global variables that i had set earlier are gone, is there anyway to keep them set?

Offline

#2 2008-12-07 13:26:05

gnud
Member
Registered: 2005-11-27
Posts: 182

Re: dlopen() and variables in the library

How exactly did you set the global variables "earlier"? In another function? If so, are you sure that function is called?

Offline

#3 2008-12-08 03:16:54

Envil
Member
Registered: 2008-11-18
Posts: 52

Re: dlopen() and variables in the library

I already solved this one and it just was one of my many n00b mistakes ^^
(= memsetting all variables in my apps to zero in the main() function... just that the dll function doesnt only get called once like in normal apps ^^ )

Offline

Board footer

Powered by FluxBB