Topics | Memory release & part family manger |
Questions | 1.low_getspace low_freespace nlsStrDup low_reallocspace low_callocspace 对应于:malloc,free,strdup,realloc,calloc |
2.Kinds of Objects shoulded be released? ObjectPtr,SetOfString,SetOfObjects,,NVSET,String SqlPtr,setPtr,DBFrame. 除这些之外,还有需要释放的吗? DBFrame这个类是为了事务(transaction)管理的吗? | |
3.Always check that a pointer is not null before freeing it . | |
4 Include cleanup for output arguments in case of failure. | |
5.A –C argument for a server in the conf file specifies the number of times that server process maybe userd before being terminated. -S how much that server process may grow in memory size 当超过指定次数的时候是不是服务停止还是重启,清理内存。 需要做到这样的话,肯定是有一个程式随时关注这些情况,然后做出动作。 | |
6. Memory options consist of native,optimized and integrity. | |
7关系类FamToPmr? .FamMstr master类? | |
8.可以把part添加进family,或者是从family中删除part继承famlimy的一些属性,但是继承也能做成这样,是为了remove的灵活才这样设计的吗? | |
Supplement | 1.string, char及其指针类型在teamcenter中的使用 String str = NULL; Char *char = NULL; 2.add …… in XXXsvr; 3.在创建AIP的时候,classic client不需要创建category,thin client 需要同时创建category 4.除XXXX外,其他的类在search result page 页面里用到的change page column 都是my data page的,这是错误的。统一Top menu,这个问题解决。 5.显示items 的默认显示条数在什么地方初始配置? 6. 查询数据的时候,会全部查出以后再去分页,这样的话,效率会受影响。在server是否存在查询指定的页面item的API 7. 在met转化的.C文件你中#line 217 "D:\\mtkuser\\cusdir\\com\\mtfdrprc.mth" 代表什么意思。 8. subscription入口进入的界面定义是一样的,这样实现有的有project No,有的没有project No,做的动作就比较大 9. config-param(处理中) |
Summary | 1.calloc()函数有两个参数,分别为元素的数目和每个元素的大小,这两个参数的乘积就是要分配的内存空间的大小。 2.DBFrame不是类,用法如下 char *frame = NULL ; BeginDbFrame(className,&frame,mfail); EndDbFrame(className,frame,mfail); CleanupS(frame); 这样做的目的就是为了事务(transaction)处理 3.当服务的数量超过指定的数量时,服务会重启,并释放相应的内存资源,这个重启是每个服务各自的事。没有被统管 6. Memory options consist of native,optimized and integrity. Will be discuss later. 7. Master是存放一些不会变化的信息。 Part,family及相应的relation的关系。 Family object Famlly class 当在 classic client执行build part family时,会根据family class构造相应的family object出来。 一个part通过和不同的family建立relation,这个part就会继承这个family的属性。原则上: 每个part 可以与多个family建立 relation 每个family可以与多个part建立relation . 如果只考虑part继承一个family,使用继承也可以达到这种效果。这是teamcenter的一种处理方式。 现阶段在Thin client端,建立一个part会分为两步,1.填入part属性值。2.填入相应的family的属性值。但是有个问题: 如果第二步创建失败的话,第一步却依然成功,也就是这个part还是被创建出来了。 8.items 的默认显示条数在会在web目录的web.xml文件里配置 9,#line 217 ""语法, 命令# line改变_LINE_ 与_ F I L E _的内容,它们是在编译程序中预先定义的标识符。 命令# line主要用于调试及其它特殊应用。 |
dispatcher |