Maybe something changed in SyntaxEdit? I am now getting crashes when this line is called in a 64-bit build of a simple test app:AddictSpell1->CheckWinControl(LMDEditView1,Ad3spellbase::ctSmart);
But it works with a RichEdit control. No crashes with that component. It also works in 32-bit builds.
Please download below file for simple sample project and screenshots of the call stack and events:
I'm using RAD Studio 12.2 with patch 2.
Call stack text:
:00007FFB8CACE48C System::Move(void const*, void*, long long)()
:0000000050672CB0 Lmdsedview::TLMDCustomEditView::EM_GetFirstVisibleLine(Winapi::Messages::TMessage&)()
:0000000050673025 Lmdsedview::TLMDCustomEditView::EM_GetLine(Winapi::Messages::TMessage&)()
:00007FFB8CAD88E4 System::TObject::Dispatch(void*)()
Exception:
First chance exception at $00007FFB8CACE48C. Exception class 0xc0000005 with message 'Exception 0xc0000005 encountered at address 0x7ffb8cace48c: Access violation writing location 0xffffffffe95e0000'. Process Project5.exe (11204)
UPDATE: Something more (not related to SyntaxEdit) may be going on here but I just thought I'd throw this out there as one of the possibilities because some things were pointing in this direction. It could also be another component or bugs in their new toolchain (new C++ compiler/linker)... and Embarcadero is well known for bugs, especially on the C++ side.
Comments