Author Topic: How to tell if .net dll is loaded with lisp?  (Read 2310 times)

0 Members and 1 Guest are viewing this topic.

jmaeding

  • Bull Frog
  • Posts: 304
  • I'm just here for the Shelties.
How to tell if .net dll is loaded with lisp?
« on: August 28, 2008, 05:11:31 PM »
I have some lisps and want to mix in stuff i did in .net.
I am on 2006, so am having my .net routines write info to a text file rather than making a true lispfunction and passing resbufs (like I want to).
Anyway, in my lisp, I can netload all day long with no problems, but I prefer to load only if i need to.
Can I detect if a .net assembly is loaded somehow?
Simply testing for the avilability of a function in it would be fine, but they are commands.
I normally say (if (not <somefunction of mine>)(load...)) for lisp functions.
Not sure how to test if a real command is defined though, only lisp functions.
any help appreciated, thx
James Maeding

tjr

  • Guest
Re: How to tell if .net dll is loaded with lisp?
« Reply #1 on: August 28, 2008, 06:11:29 PM »
Couldn't you just go through the registry to add your code instead of NETLOAD? Doing it this way you could set it up for demand loading.

jmaeding

  • Bull Frog
  • Posts: 304
  • I'm just here for the Shelties.
Re: How to tell if .net dll is loaded with lisp?
« Reply #2 on: August 28, 2008, 07:51:15 PM »
well, I guess that would work.
That does not tell me what is loaded though.
I prefer to work off info I can test, instead of assuming something got loaded.
As-is, I am assuming it did not get loaded.
Not a bad idea though, thx
James Maeding

sinc

  • Guest
Re: How to tell if .net dll is loaded with lisp?
« Reply #3 on: August 28, 2008, 11:46:32 PM »
If you attempt to NETLOAD something that is already loaded, doesn't the NETLOAD simply silently return without doing anything?  (That's what it looks like, from a casual test...)

jmaeding

  • Bull Frog
  • Posts: 304
  • I'm just here for the Shelties.
Re: How to tell if .net dll is loaded with lisp?
« Reply #4 on: September 02, 2008, 07:55:03 PM »
Sinc,
yep, that's what i'm doing now.
It seems to cause a slight delay, so was looking for a cleaner way.
thx
James Maeding