几何尺寸与公差论坛

 找回密码
 注册
查看: 98|回复: 2

PR258482 - Application is crashing in the report template editor

[复制链接]
发表于 2008-12-8 19:39:55 | 显示全部楼层 |阅读模式
<< Werner Habermann  --  11/27/08  17:55:11>>
They wrote:
----------------
Attached is an AVI clip with the steps to duplicate the crash we talked about:

Steps to duplicate:
Step 1: open an existing pp or create a new one
Step 2: File -> Reporting -> New Report
Step 3: Call Property Colors in Tab Report
Step 4: Answer "Yes" on Dialog "define a colorset independant ..."
Step 5: Cancel out the "Color Editor"-dialog (the crash also occurs if you hit here OK!)
Step 6: Create a new TextReportObject on the report
Step 7: Crash (reproducable), PCDMIS-window vanishes from the screen
----------------

I'm able to duplicate this on my VISTA machine with exactly the given steps.

<<END>>
 楼主| 发表于 2008-12-8 19:40:16 | 显示全部楼层

回复: PR258482 - Application is crashing in the report template editor

<< Ben Mathews  --  12/03/08  08:01:51>>
A missing copy constructor caused the problem.  The compiler constructor did a shallow copy so two objects shared memory.  Then the destructor for one freed the "owned" memory leaving a hanging pointer for the other.

Wed Dec 03 08:01:08 2008
V42R\EDITORS\COLORNODE.CPP
V42R\INCLUDE\COLORNODE.H
V431\EDITORS\COLORNODE.CPP
V431\INCLUDE\COLORNODE.H
V44B\EDITORS\COLORNODE.CPP
V44B\INCLUDE\COLORNODE.H
<<END>>
 楼主| 发表于 2008-12-8 19:47:57 | 显示全部楼层

回复: PR258482 - Application is crashing in the report template editor

CColorNode& CColorNode:perator =(const CColorNode& color)
{
if( &color == this )
return *this;

CopyData(color);
return *this;
}
----------------Ben
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-23 06:43 , Processed in 0.036281 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表