View Issue Details

IDProjectCategoryView StatusLast Update
0003697JEDI VCL00 JVCL Componentspublic2006-06-07 03:40
ReporterFrenk3Assigned Toobones 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.20 
Target VersionFixed in Version3.30 
Summary0003697: TJvPluginManager.Plugins[0].FileName does return invalid file name
DescriptionTJvPluginManager.Plugins returns invalid FileName ("CustomPlugin" for all
plugins). For internal use I modified a method

function AddCustomPlugin(PlugIn: TJvPlugIn ): Boolean
to
function AddCustomPlugin(PlugIn: TJvPlugIn; FileName : string): Boolean
and added
function TJvPluginManager.AddCustomPlugin(PlugIn: TJvPlugIn; FileName :
string ): Boolean;
var
  PlgInfo: TPluginInfo;
  Counter: Integer;
begin
  Result := False;
  try
// Result := PlugIn.Initialize(Self, Application, 'CustomPlugin');
// error!
    Result := PlugIn.Initialize(Self, Application, FileName);
    if not Result then

also added to procedure

procedure TJvPluginManager.LoadPlugin(FileName: string; PlgKind:
TPluginKind);

      // initialize the plugin and add to list
      if AddCustomPlugin(PlugIn, FileName) then
Additional InformationI attached the unit with fixes (modified by Frenk)
TagsNo tags attached.

Activities

2006-05-10 11:52

 

JvPluginManager.pas (16,290 bytes)

obones

2006-05-21 09:36

administrator   ~0009334

Can you provide a diff file instead ?

obones

2006-06-07 03:40

administrator   ~0009405

A slight variation of this is now in CVS.

Issue History

Date Modified Username Field Change
2006-05-10 11:52 Frenk3 New Issue
2006-05-10 11:52 Frenk3 File Added: JvPluginManager.pas
2006-05-21 09:36 obones Note Added: 0009334
2006-05-21 09:36 obones Status new => feedback
2006-06-07 03:40 obones Status feedback => resolved
2006-06-07 03:40 obones Resolution open => fixed
2006-06-07 03:40 obones Assigned To => obones
2006-06-07 03:40 obones Note Added: 0009405