Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2017-12

Some trunk changes make CudaText crash

7 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Alexey
to Juha Manninen
You don't see the source code for function UTF8CharacterLength()
I don't see which place gives AV (on pasting text), is it in this^^^
func, or not. I only see last stop at ...:=UTF8CharacterLength(). Then i
removed this call and replaced it with ...:=Length(UTF8Decode(s)). now
this crash gone. but new code is slower.
Regards, Alexey

Reply by email

Alexey
to Alexey: User sees crash in CudaText, when he makes paste from clipboard. He tells how to repeat…

My workaround don't help, still AV on pasting. Both cases give AV in fpc_ansistr_dec_ref. Here is asm window:

Alexey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crash-ansi-decref.png
Type: image/png
Size: 66002 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20171209/73d045da/attachment-0001.png>

Reply by email

Juha Manninen
to Alexey
Alexey wrote
I found the reason, it's my bug with generic lists.

Ok. In future you can build the whole IDE with debug flags, for example with the "Debug IDE" profile in Configure Build Lazarus window.
Packages like LCL and LazUtils also get the same debug flags.

Juha

Reply by email