Re: [BLACKBOX] Loading a dll

From: [at]} <Chris>
Date: Thu, 24 Sep 2009 09:29:57 +0930

----boundary-LibPST-iamunique-885405110_-_-
Content-type: text/plain

It may be too late for your current situation but my general advice is to be
careful what you put into initialisation sections of Modules. If you use
them to call other functions in other modules it can get very tricky trying
to trace the call dependencies and determine in which sequence the total
code is actually executed. When things go wrong it is difficult to track
them down.

I often restrict the use of initialisation sections to just that - i.e.
initialising global variables, assigning default procedure variables etc.
Any code that is performing real tasks I would put into an 'Init' type of
function in the Module. A supervisor module at the beginning of the app then
calls all of the necessary Init functions in a sequence that is under the
explicit and transparent control of the programmer not as a mysterious
sequence by the loader.

--
Chris Burrows
CFB Software
Armaide v2.1: ARM Oberon-07 Development System
http://www.armaide.com
________________________________
	From: BlackBox [mailto:BLACKBOX{([at]})nowhere.xyDouglas G. Danforth
	Sent: Thursday, 24 September 2009 8:53 AM
	To: BLACKBOX{([at]})nowhere.xy	Subject: Re: [BLACKBOX] Loading a dll
	
	
	Bob and Folks,
	DOS PATH, nope. I found it.
	
	In one of my modules there is a call to a function in the BEGIN
section of the module.
	That call is failing (for some reason) which blocks the loading of
the module and hence
	the loading of the dll which causes the error message that the dll
is not found.  Not a
	nice error message.  Needs to be more specific.
	
	Now I need to understand why the function is failing (within the
dll) but not outside
	of it.  I am opening a file from within the dll.  I hope that is
kosher.
	
	-Doug Danforth
	
----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-885405110_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZj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.0 : Thu Sep 26 2013 - 06:30:41 UTC