2

根据.NET framework 4的过程oleskii重新编译pythonent的解决方案项目后,我的代码有问题。这是发生崩溃的前几行。

import sys, clr

sys.path.append ("G:/bin_EESPORt")
clr.AddReference ("ASAM.HILAPI.Implementation")
clr.AddReference ("ASAM.HILAPI.Interfaces")
clr.AddReference ("dSPACE.HILAPI.EESPort")
clr.AddReference ("dSPACE.HILAPI.EESPort.Interfaces")


from System import *
from System.IO import *
from System.Threading import *
from ASAM.HILAPI.dSPACE.EESPort import *   #here crash pythonwin
from ASAM.HILAPI.Implementation.EESPort.Error import *
from ASAM.HILAPI.Interfaces.EESPort import *
from ASAM.HILAPI.Interfaces.EESPort.Enum import *
from ASAM.HILAPI.Interfaces.EESPort.ErrorFactory import *
from ASAM.HILAPI.Interfaces.EESPort.ErrorObjects import *

所以在调试模式下,我的工具 PythonWin 在线崩溃(它冻结并引发错误 pywin32): from ASAM.HILAPI.dSPACE.EESPort import * #here crash pythonwin

PC系统是windows 7 64位。IDE 是 PythonWin,在 win32 上带有 python 2.7.9 MSC v.1500 32-bit (Intel)]。安装的框架包括:.NET Framework 4 Client Profile、.NET Framework 4 Extended、.NET Framework 4 Targeting Multi-Pack 和 Visual C# 2010 Express。

感谢您提前存款的帮助,我真的需要您的帮助。

4

0 回答 0