s-news
[Top] [All Lists]

Misfiring when sourcing files from .First.lib

To: "'s-news@lists.biostat.wustl.edu'" <s-news@lists.biostat.wustl.edu>
Subject: Misfiring when sourcing files from .First.lib
From: "Tzamouranis, Yannis" <Yannis.Tzamouranis@ngwi.com>
Date: Thu, 17 Apr 2003 10:49:42 -0400
Hi all.

I have a nagging and somewhat transient problem.

I have a library, which contains a .First.lib.  In it, three files are
sourced:
source("my_functions.ssc", local = F, echo = F, n = -1, immediate = NULL)
source("my_callbacks.ssc", local = F, echo = F, n = -1, immediate = NULL)
source("add.my.menus.ssc", local = F, echo = F, n = -1, immediate = NULL)

The process works FOR THE MOST part: 99% of the functions in my_functions
are defined successfully and all the menus and 99% of the dialogs produced
by add.my.menus are OK.
Occasionally, something like this will happen upon loading the libraries:
*       a dialog will miss something like a text field; or
*       an occasional function will not be defined, so when you try to
invoke it from a dialog, SPLUS will complain.

It is all curable, if you run my_functions, my_callbacks and add.my.menus
MANUALLY, in which case no problem ever occurs.
I know there is a timing issue with sourcing files in that no assignments
are committed until "source" exits normally (though not sure what it would
explain). Is there any wisdom out there on how to get around this?

I use SPLUS 6.1Release 2 on Win 2000.

Yannis Tzamouranis
Republic Power


The information contained in or attached to this email is intended only for
the use of the individual or entity to which it is addressed. If you are not
the intended recipient, or a person responsible for delivering it to the
intended recipient, you are not authorized to and must not disclose, copy,
distribute, or retain this message or any part of it. It may contain
information, which is confidential and/or covered by legal professional or
other privilege (or other rules or laws with similar effect in jurisdictions
outside Canada).The views expressed in this email are not necessarily the
views of Centrica Canada Limited, Centrica US Holdings Inc. or their
affiliates, and the said companies, their directors, officers or employees
make no representation or accept any liability for its accuracy or
completeness unless expressly stated to the contrary.

<Prev in Thread] Current Thread [Next in Thread>
  • Misfiring when sourcing files from .First.lib, Tzamouranis, Yannis <=