Index: trunk/ab5.0/abdev/compiler_x86/Compile_Func.cpp
===================================================================
--- trunk/ab5.0/abdev/compiler_x86/Compile_Func.cpp	(revision 688)
+++ trunk/ab5.0/abdev/compiler_x86/Compile_Func.cpp	(revision 689)
@@ -374,5 +374,5 @@
 
 
-	if( userProc.GetMethod().IsDynamic() )
+	if( userProc.HasParentClass() && userProc.GetMethod().IsDynamic() )
 	{
 		/////////////////////////////////////////////////////////////////
@@ -406,5 +406,5 @@
 
 	std::vector<const UserProc *> subs;
-	if( userProc.GetMethod().IsDynamic() )
+	if( userProc.HasParentClass() && userProc.GetMethod().IsDynamic() )
 	{
 		dgClass.GetStaticMethods().Enum( "_CreateDynamicDelegate", subs );
