[Zope-CVS] CVS: PythonNet/src/runtime - AssemblyManager.cs:1.2
Brian Lloyd
brian at zope.com
Tue Aug 12 18:27:21 EDT 2003
Update of /cvs-repository/PythonNet/src/runtime
In directory cvs.zope.org:/tmp/cvs-serv4448
Modified Files:
AssemblyManager.cs
Log Message:
Added a workaround to run under mono.
=== PythonNet/src/runtime/AssemblyManager.cs 1.1 => 1.2 ===
--- PythonNet/src/runtime/AssemblyManager.cs:1.1 Mon Jul 14 15:59:51 2003
+++ PythonNet/src/runtime/AssemblyManager.cs Tue Aug 12 17:27:16 2003
@@ -12,6 +12,7 @@
using System;
using System.Collections;
using System.Reflection;
+using System.Reflection.Emit;
namespace Python.Runtime {
@@ -108,6 +109,16 @@
//===================================================================
static void ScanAssembly(Assembly assembly) {
+
+ // TODO: this is a workaround for a current Mono bug: calling
+ // GetTypes on a generated assembly will cause it to fall over.
+ // For now we'll skip generated assemblies, which usually are
+ // uninteresting support code anyway.
+
+ if (assembly is AssemblyBuilder) {
+ return;
+ }
+
Type[] types = assembly.GetTypes();
for (int i = 0; i < types.Length; i++) {
string type_ns = types[i].Namespace;
More information about the Zope-CVS
mailing list