Free cookie consent management tool by TermsFeed Policy Generator

Changeset 535


Ignore:
Timestamp:
09/03/08 20:25:22 (16 years ago)
Author:
gkronber
Message:

added a try-catch block to handle the case that a plug-in installs a non-CLR .dll file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.PluginInfrastructure/Loader.cs

    r242 r535  
    132132      // load all installed plugins into the reflection only context
    133133      foreach(String filename in Directory.GetFiles(pluginDir, "*.dll")) {
    134         assemblies.Add(ReflectionOnlyLoadDll(filename));
     134        try {
     135          assemblies.Add(ReflectionOnlyLoadDll(filename));
     136        } catch(BadImageFormatException) { } // just ignore the case that the .dll file is not actually a CLR dll
    135137      }
    136138      return assemblies;
Note: See TracChangeset for help on using the changeset viewer.