View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0023636 | Community | OCCT:Coding | public | 2012-12-12 20:49 | 2013-04-29 15:22 |
Reporter | llbatlle | Assigned To | |||
Priority | normal | Severity | feature | ||
Status | closed | Resolution | fixed | ||
Platform | Windows 7 | OS | Windows | ||
Product Version | 6.5.4 | ||||
Target Version | 6.6.0 | Fixed in Version | 6.6.0 | ||
Summary | 0023636: Problems initialising errorStream | ||||
Description | Building a program that links opencascade statically, I've hit that OSD_Error::Reset() gets called sooner than errorStream is initialized to &cerr. This leads to a crash. The OSD_Error::Reset() call happens in the constructor of a static object. The initialization order is undefined, for errorStream & the static object, I guess. In an old build I have of opencascade 6.3.0 with vc2008, that works fine. But this 6.5.4 with vc2012, crashes at early start of the exe I build. | ||||
Steps To Reproduce | I statically linked opencascade + tkopengl into a single exe. I don't know if building opencascade DLLs (and not static libs) overcomes the issue. And it may be overcome by chance, for what I imagine. | ||||
Tags | No tags attached. | ||||
Test case number | Not needed | ||||
|
occ-errorstream.patch (1,271 bytes) |
|
I attached the patch we use to make our programs not crash at start. |
|
The correction is pushed to branch CR23636; reviewed; please test |
|
Dear BugMaster, Branch CR23636 (and products from GIT master) was compiled on Linux and Windows platforms and tested. Regressions: Not detected Improvements: Not detected Testing cases: Not needed |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-12-12 20:49 | llbatlle | New Issue | |
2012-12-12 20:49 | llbatlle | Assigned To | => bugmaster |
2012-12-20 15:16 | llbatlle | File Added: occ-errorstream.patch | |
2012-12-20 15:17 | llbatlle | Note Added: 0022788 | |
2012-12-20 15:37 |
|
Assigned To | bugmaster => abv |
2012-12-20 15:37 |
|
Status | new => resolved |
2012-12-21 13:58 |
|
Note Added: 0022800 | |
2012-12-21 13:58 |
|
Assigned To | abv => bugmaster |
2012-12-21 13:58 |
|
Status | resolved => reviewed |
2012-12-28 14:31 |
|
Note Added: 0022881 | |
2012-12-28 14:32 |
|
Test case number | => Not needed |
2012-12-28 14:32 |
|
Status | reviewed => tested |
2013-01-04 11:35 |
|
Changeset attached | => occt master d9b81fa5 |
2013-01-04 11:35 |
|
Assigned To | bugmaster => abv |
2013-01-04 11:35 |
|
Status | tested => verified |
2013-01-04 11:35 |
|
Resolution | open => fixed |
2013-02-20 10:19 | bugmaster | Target Version | => 6.6.0 |
2013-04-23 13:36 |
|
Status | verified => closed |
2013-04-29 15:22 |
|
Fixed in Version | => 6.6.0 |
2014-01-11 11:58 |
|
Category | OCCT Release:BUILD => OCCT:Coding |