`
peter.lee
  • 浏览: 11529 次
  • 性别: Icon_minigender_1
最近访客 更多访客>>
社区版块
存档分类
最新评论

Baan全局变量的冲突问题

阅读更多

        session tdsls4501m000 recalcuate price时出错:

FATAL ERROR: Dynamic Link failure external symbol 'item' in DLL object 'otfglddll4002'

Can not continue in tdsls4501m000 in DLL: otfintdlltfgld (<5>).

        出错信息不是很明确,一时晕大浪.

        查library tfglddll4002和tfintdlltfgld俱为stnd的program,非二次开发,留意到tfglddll4002有定义一个全局变量: extern domain tcitem  item.

        再查回session tdsls4501m000的script tdsls4501,其也有定义了一个全局变量,不过domain不一样:extern doamin tcdsca item.这下错误清淅了。

        baan的变量若定义为extern,即可为外部使用,但若外部的代码再有定义同名的变量,且其变量类型和前不一致则会触发运行时错误(可怜的baan编译时是发现不了该问题的)

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics