It is currently Thu Feb 22, 2018 6:14 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Global inside Dll
PostPosted: Tue Feb 13, 2018 12:33 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue Jun 08, 2004 10:29 am
Posts: 139
Location: Zurich, Switzerland
Will a Global Var$ inside a DLL be different for all the Applications using the DLL simultaneously or shared between the Instances of the DLL? What about a Threaded Var$?

Another question: will a Global Var$ inside the Dll be available for multiple serial procedure calls? What about a Static Var$ inside the ProcedureDll? Will the Static Var$ inside the ProcedureDll be static for all Applications using the DLL?

And another: does a Threaded Var$ in a non-threaded environment fallback to Global Var$?

Thank you!

_________________
As you walk on by, Will you call my name? Or will you walk away?


Top
 Profile  
Reply with quote  
 Post subject: Re: Global inside Dll
PostPosted: Tue Feb 13, 2018 5:09 pm 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 1122
Location: Germany
Each instance hate its own memory.
Thus Global, Threaded, etc. functions like in the main program.

PB-IDs like Windows, Images, Network have their own environment.
So it is not easy to create it from a DLL window and dialogs.
These must ALWAYS be created in the mainscope.

_________________
My Projects OOP-BaseClass / OOP-BaseClassDispatch / Event-Designer /
PB v3.30 / v5.60 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject: Re: Global inside Dll
PostPosted: Wed Feb 21, 2018 2:08 pm 
Offline
User
User

Joined: Wed Aug 06, 2008 8:21 am
Posts: 72
mk-soft wrote:
Each instance hate its own memory.

No hate please!
Just kidding, I know you mean "Each instance has its own memory." ;)

_________________
PureBASIC v5.41 LTS , Windows v8.1 x64
Forget UNICODE - Keep it BASIC !


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye