🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.language.objectpascal
Article #32438

What does the package contain

#32438
From: Uter [TeamD]
Date: Sat, 23 Nov 2002 00:35
28 lines
2138 bytes
Is there a way to "look" inside an unloaded package at run time?

We have a proprietary server plugin system that uses plugin objects defined
in Delphi packages.  Users of the system can write their own plugins.  There
is a situation that occurs sometimes that involves two packages containing
the same plugin, but having a different name.

Example: EmailPluginVer001.bpl and EmailPluginVer002.bpl

Each of those would contain the same unit: EMailPlugin.pas and the same
class TEmailPlugin.

When the plugin system attempts to load both of these files it fails on the
second one (as it should).  But after the failed call to LoadPackage I don't
have the ability to figure out what plugin was contained within the second
package.  All I know is it failed because it was already loaded.

I would like to be able to figure out what's inside and if 2 bpl files
contain the same plugin, I want to use the newer one and rename the old one
so that it doesn't show up in my file scan anymore.

Thanks in advance for any ideas.

--
Mark Lauter
photos: http://marklauter.dyndns.org/photos
resume: http://marklauter.dyndns.org
code standards: http://buschwood.com/CodeStandards/
Technical Details
Message-ID: <3ddece43$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!ngpeer.news.aol.com!newsfeed1.bredband.com!bredband!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109d30,7385ecc87b03ad2c,start
X-Google-Attributes: gid109d30,public
X-Google-ArrivalTime: 2002-11-22 17:16:07 PST
From: "Uter [TeamD]" <marklauter@hotmail.com>
Newsgroups: borland.public.delphi.language.objectpascal
Subject: What does the package contain
Date: Fri, 22 Nov 2002 19:35:50 -0500
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 65.34.85.56
Message-ID: <3ddece43$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1038011971 65.34.85.56 (22 Nov 2002 16:39:31 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!ngpeer.news.aol.com!newsfeed1.bredband.com!bredband!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mail