Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (PeroPero), 879 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: DLL is not loaded [Re: Ch40zzC0d3r] #448512
02/08/15 20:12
02/08/15 20:12
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
@^:
Yes, but if there is not only one dependency but maybe 2 or 3 with only one missing function this will be pita. DependencyWalker is a nice and clear solution that only takes seconds to find out where the problem is


Visit my site: www.masterq32.de
Re: DLL is not loaded [Re: MasterQ32] #448514
02/08/15 20:21
02/08/15 20:21
Joined: Mar 2012
Posts: 927
cyberspace
W
Wjbender Offline
User
Wjbender  Offline
User
W

Joined: Mar 2012
Posts: 927
cyberspace
whoa masterq32 I just realised I used kartoffel's nick to refer to you in my previous reply , waaay sorry I fixed it lol


Compulsive compiler
Re: DLL is not loaded [Re: MasterQ32] #448519
02/09/15 08:16
02/09/15 08:16
Joined: Dec 2008
Posts: 1,218
Germany
Rackscha Offline
Serious User
Rackscha  Offline
Serious User

Joined: Dec 2008
Posts: 1,218
Germany
Originally Posted By: MasterQ32
I don't think LoadLIbrary will work if the library has already loaded before.


you can load a library as often as you want, you just need to unload it by the same amount of calls. It's reference counted.

If the dll was loaded before, LoadLibrary does not load anything, it just returns the already existing handle and increases ReferenceCounting by 1.

Same goes for FreeLibrary. It first Decrements the referencecount by 1, and if it reaches 0, it unloads the library. So if you "load" a library 3 times, you have to "Unload" it 3 times. Otherwhise it's keept until your process exits.


MY Website with news of my projects:
(for example my current
Muliplayer Bomberman,
GenesisPrecompiler for LiteC
and TileMaster, an easy to use Tile editor)
Sparetime-Development

Re: DLL is not loaded [Re: Rackscha] #448521
02/09/15 09:26
02/09/15 09:26
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
^this thanks wink
was actually too lazy to type that since its stated on msdn

Last edited by Ch40zzC0d3r; 02/09/15 09:26.
Re: DLL is not loaded [Re: Ch40zzC0d3r] #448524
02/09/15 10:01
02/09/15 10:01
Joined: Mar 2012
Posts: 927
cyberspace
W
Wjbender Offline
User
Wjbender  Offline
User
W

Joined: Mar 2012
Posts: 927
cyberspace
^ & ^

you misunderstood the point , if the engine couldn't load the dll after gamestudio was freshly reinstalled (it used to be able to load it at startup) ,then loadlibrary would also not be able to load the library because obviously there's an issue with the library and not gamestudio , thats what we meant .


Compulsive compiler
Re: DLL is not loaded [Re: Wjbender] #448529
02/09/15 16:27
02/09/15 16:27
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
@Rakscha: I know how LoadLibrary works, pretty good actually wink
The point is, what Wjbender said above.


Visit my site: www.masterq32.de
Re: DLL is not loaded [Re: MasterQ32] #448554
02/10/15 10:32
02/10/15 10:32
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
The normal reason why Windows does not load a DLL is an unresolved dependency. Your DLL needs some other DLL that is not provided on your system. Maybe a certain DirectX version or something like that.

There is a free tool named "Dependency Walker" that you can use for fixing those problems.

Re: DLL is not loaded [Re: MasterQ32] #448557
02/10/15 12:30
02/10/15 12:30
Joined: Dec 2008
Posts: 1,218
Germany
Rackscha Offline
Serious User
Rackscha  Offline
Serious User

Joined: Dec 2008
Posts: 1,218
Germany
Originally Posted By: MasterQ32
@Rakscha: I know how LoadLibrary works, pretty good actually wink
The point is, what Wjbender said above.

Then i mssunderstood you. Because, if a library loaded before LoadLibrary will work! but you stated the opposite^^


MY Website with news of my projects:
(for example my current
Muliplayer Bomberman,
GenesisPrecompiler for LiteC
and TileMaster, an easy to use Tile editor)
Sparetime-Development

Page 2 of 2 1 2

Moderated by  old_bill, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1