View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0032157 | Community | OCCT:DRAW | public | 2021-02-23 04:18 | 2021-02-23 09:03 |
| Reporter | xuweibin | Assigned To | |||
| Priority | normal | Severity | crash | ||
| Status | new | Resolution | open | ||
| Platform | Windows | OS | VC++ 2013 | ||
| Product Version | 7.5.0 | ||||
| Summary | 0032157: Draw Harness - Use XSDRAWSTLVRML_DataSource cause a crash | ||||
| Description | When I use XSDRAWSTLVRML_DataSource,it cause a crash. The code like below: Handle(XSDRAWSTLVRML_DataSource) aDs = new XSDRAWSTLVRML_DataSource(astl_mesh); It runs okay,but when I close my application,it crashed in the file Draw_Interpretor.cxx.
Draw_Interpretor::~Draw_Interpretor()
{
SetDoLog (Standard_False);
if (myFDLog >=0)
{
close (myFDLog);
myFDLog = 0;
}
// MKV 01.02.05
#if ((TCL_MAJOR_VERSION > 8) || ((TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION >= 4)))
try {
OCC_CATCH_SIGNALS
Tcl_Exit(0);//crash
}
catch (Standard_Failure const&) {
#ifdef OCCT_DEBUG
std::cout <<"Tcl_Exit have an exeption" << std::endl;
#endif
}
#else
#ifdef _WIN32
Tcl_Exit(0);
#endif
#endif
}
My version of tcl is 8.6,the code check it and crash; What happens?How can I do to solve it? | ||||
| Tags | No tags attached. | ||||
| Test case number | |||||
|
|
I suppose this is irrelevant to XSDRAWSTLVRML_DataSource, and happens in Tcl itself. So the bug should be debugged there. https://old.opencascade.com/content/crash-tkdrawdrawinterpretortclexit As for XSDRAWSTLVRML_DataSource in application code - it is better avoiding links to Draw Harness libraries as long as Tcl interpretor in not used in your application (cannot say if it does from bug description). |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2021-02-23 04:18 | xuweibin | New Issue | |
| 2021-02-23 04:18 | xuweibin | Assigned To | => abv |
| 2021-02-23 08:50 | kgv | Summary | Use XSDRAWSTLVRML_DataSource cause a crash. => Draw Harness - Use XSDRAWSTLVRML_DataSource cause a crash |
| 2021-02-23 08:50 | kgv | Description Updated | |
| 2021-02-23 09:02 | kgv | Note Added: 0099099 | |
| 2021-02-23 09:03 | kgv | Note Edited: 0099099 |