FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to support this design pattern?

 
Post new topic   Reply to topic     Forum Index -> DDL - D Dynamic Libraries
View previous topic :: View next topic  
Author Message
kylefurlong



Joined: 16 Nov 2005
Posts: 29

PostPosted: Wed Nov 15, 2006 12:20 am    Post subject: How to support this design pattern? Reply with quote

So I'd like to provide a library (game engine) which dynamically loads parts of itself at runtime using DDL.

Currently, the problem is that I get errors because the end user executable symbols arent being loaded.

How can I work around this? Is it impossible without forcing the user to provide his symbols?
Back to top
View user's profile Send private message
larsivi
Site Admin


Joined: 27 Mar 2004
Posts: 453
Location: Trondheim, Norway

PostPosted: Wed Nov 15, 2006 1:37 am    Post subject: Re: How to support this design pattern? Reply with quote

kylefurlong wrote:
So I'd like to provide a library (game engine) which dynamically loads parts of itself at runtime using DDL.

Currently, the problem is that I get errors because the end user executable symbols arent being loaded.

How can I work around this? Is it impossible without forcing the user to provide his symbols?


I suppose Eric knows more of this, but I think you will have a hard time without loading the executable, something you can do by using the insitu component/loader.
Back to top
View user's profile Send private message
pragma



Joined: 28 May 2004
Posts: 607
Location: Washington, DC

PostPosted: Wed Nov 15, 2006 8:25 am    Post subject: Re: How to support this design pattern? Reply with quote

kylefurlong wrote:
So I'd like to provide a library (game engine) which dynamically loads parts of itself at runtime using DDL.

Currently, the problem is that I get errors because the end user executable symbols arent being loaded.

How can I work around this? Is it impossible without forcing the user to provide his symbols?


The only way DDL can link to modules at runtime is if the .exe is "DDL aware" and has an up-to-date in-situ symbol listing. This is due to the fact that runtime modules need to hook into the GC, IO, and exception hooks in the main program. Runtime modules simply won't function without them.

If you need more code security than that, you need to look into using the more traditional .dll approach, or simply cull symbols from your .map/.in-situ file that you don't feel like sharing to the world. The latter will take some serious trial-and-error, but may be worth it in the end.
_________________
-- !Eric.t.Anderton at gmail
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DDL - D Dynamic Libraries All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group