On Sun, Jul 18, 2021 at 11:47 AM zyx <z...@gmx.us> wrote: > On Thu, 2021-05-27 at 18:07 +0200, Michal Sudolsky wrote: > > Get/SetFontScale and Get/SetFontSize are inline functions so if > > memory layout of class PdfFontMetrics is different in your exe than > > in podofo dll then this and other bad things can happen. > > Hi, > once upon a time, I suggested to make all inline functions non-inline, > basically to remove all code execution out of the header files, which > should help in such situations, but it had not been accepted. > > Should it be reconsidered, maybe? >
This would not resolve anything but just mask the problem further. You would need to prohibit all user allocations (including on stack) because if memory layout is different then size of class may be different on user vs podofo side (and inline functions are good, they are faster). > Bye, > zyx > > > _______________________________________________ > Podofo-users mailing list > Podofo-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/podofo-users >
_______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users