freeze on boolean modifier vista 32 bits?

i tried this in latst built 39941

and the booelan worsk fine but as soons as i select the new object
it freeze blender and at top i get not responding

can someone help to unfreeze this boolean modifier ?


 
 
import bpy, math,cmath
from bpy.props import *
from mathutils import *
from math import *  
 
 
# http://www.blender.org/forum/viewforum.php?f=9
 
# http://www.blenderlinks.com/
 
# http://www.blender.org/documentation...Modifiers.html
# http://www.blender.org/documentation...types.Modifier
# http://www.blender.org/documentation...ooleanModifier 
 
 
objs = bpy.context.selected_objects
 
if len(objs) >= 2:
 o=objs[0]
 o2=objs[1]
 
 mod=o.modifiers.new('boo','BOOLEAN')
 mod.object=o2
 mod.operation='INTERSECT'     #'INTERSECT', 'UNION', 'DIFFERENCE'
 
 bpy.context.scene.update()
 
 bpy.ops.object.modifier_apply(apply_as='DATA', modifier="BOOLEAN")
 
else:
 print("Select at least two objects")
 
 
 

it looks like the modifier is not applied and is added several times
if i remove manually the modifiers then i can select the new object
but it’s not seperated from the another object !

thanks
happy 2.5