I am debugging a code that generates five dxf files. Everything works correctly for the first generation. As soon as I start creating the second dxf file I get this error.
Could someone help me and explain me the problem. I am not able to post the whole code because the code is very big. thanks in advance

The reason for this failure was that I used these two data types in the wrong way:
const wchar_t*wstringThe layer name and linetype name must be
wstring. The constwchar_t*is not allowed and crashes my debugger. I'm sorry I didn't post the code as it's very extensive and I wasn't able to see the specific error location. I hope this can help you guys.