Author Topic: ZwCAD crash with dcl-Grid-SetCellStyle 32 and 33  (Read 2523 times)

Joseph

  • Member
  • *
  • Posts: 17
ZwCAD crash with dcl-Grid-SetCellStyle 32 and 33
« on: September 20, 2023, 10:51:40 PM »
I have a custom layer properties grid.
Code: [Select]
(dcl-Grid-SetCellStyle myGrig row col 32) ;LineWeight cell style
(dcl-Grid-SetCellStyle myGrig row col 33) ;LineType cell style
When I click on a cell with cell style 32 and 33 the ZwCAD 2022 and also 2023 crashes. (BricsCAD and AutoCAD does not crash)
It was tested with OpenDCL 9.2.1.2 and 9.1.5.2

owenwengerd

  • Administrator
  • Hero Member
  • *****
  • Posts: 3101
    • Outside The Box
Re: ZwCAD crash with dcl-Grid-SetCellStyle 32 and 33
« Reply #1 on: September 23, 2023, 03:48:18 PM »
I could reproduce this in the Grid sample. Their CAdUiComboBox::SetStyleMask() function crashes. For the next build of OpenDCL I have added a preprocessor guard to skip this SetStyleMask() call on ZWCAD. The problem should be reported to ZWSOFT developers if you have contact with them.