[Lazarus] Printing BitMap on OSX crashes
Martin Grajcar
maaartinus at gmail.com
Sun Aug 2 21:20:16 CEST 2015
Hi Jesus,
On Sat, Aug 1, 2015 at 7:08 AM, Jesus Reyes A. <jesusrmx at gmail.com> wrote:
>
>
> The problem occurs because the bitmap is being freed before
> Printer.EndDoc. It is at this point that the bitmap data is used, but
> because it was already freed an AV occurs. I have actually fixed the
> problem, but in my current implementation resources are only be freed at
> program end. Which is not good if somebody are printing a lot. So I have
> not committed the fix, I have another plan and will try again soon.
>
> In the mean time, the workaround it's easy (this is not the fix I
> mentioned before which would patch the LCL+Printer support). Just create
> the bitmap before Print.BeginDoc and free it after Print.EndDoc. That
> should work.
>
it does, thanks a lot!
Maybe you can help me with this: How can I get the debugger (lazarus/gdb)
show the C code? All I get for the innermost frames is an address and
assembler. No idea what to install (and Google really didn't help).
Regards,
Martin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150802/70f73665/attachment-0003.html>
More information about the Lazarus
mailing list