tfussell / xlnt

:bar_chart: Cross-platform user-friendly xlsx library for C++11+
Other
1.43k stars 402 forks source link

Crash on Release #729

Closed flaviu22 closed 4 months ago

flaviu22 commented 4 months ago

Win11, VisualStudio2022, C++14/17/22 I took demo code:

    xlnt::workbook wb;
    xlnt::worksheet ws = wb.active_sheet();
    ws.cell("A1").value(5);
    ws.cell("B2").value("string data");
    ws.cell("C3").formula("=RAND()");
    ws.merge_cells("C3:C4");
    ws.freeze_panes("B2");
    wb.save("example.xlsx");

Works fine on Debug, but on Release is crashing on several lines:

ws.cell("C3").formula("=RAND()");

or

wb.save("c:/transfer/example.xlsx");

or

ws.workbook().save("c:/transfer/example.xlsx");

Can you check this? The error is different, depending of line: image image Can you check this? The same outcome on VS2017. The interesting partis that on Debug works perfect, but on Release generate this error. How is possible?

flaviu22 commented 4 months ago

I have compiled this project with these commands: git config --global http.sslVerify false then git clone https://github.com/tfussell/xlnt.git xlnt --recurse-submodules then git config --global http.sslVerify true