This is the cause:
https://www.ibm.com/docs/vi/xcfbg/121.141?topic=functions-sync-fetch-sub
The function returns the initial value of the variable that __p points to.
https://learn.microsoft.com/en-us/windows/win32/api/winnt/nf-winnt-interlockeddecrement
The function returns the resulting decremented value.
:(
Different return value causes that on Windows no leak occurs, but on all unix systems
decreasing ussage counter does not cause releasing memory.
~~~
if(I->Raster!=NULL)
{
if(InterlockedDecrement(&I->Raster->UsageCount)<=0)
delete I->Raster;
I->Raster = NULL;
}
~~~... read more
WP2LaTeX 4.12 attempts to convert arabic glyphs. I have no relevant WordPerfect document that contains arabic text. Please help if you have something.
Also please try to convert attached document with LaTeX.
WP2LaTeX's tests passed on all Debian compile farm builders: https://buildd.debian.org/status/package.php?p=wp2latex&suite=sid
Please do not use GCC 14.2 to compile WP2LaTeX, older GCCs seems to be OK. I has been added extended check addressed for this issue into wp2latex-4.10c.zip .
~~~
<<<struct>>> (c)1998-2024 Jaroslav Fojtik
This program tests the struct.c library
LO_ENDIAN defined
NATIVE access
Testing file operations
Testing struct manipulation
Testing memory access macros
.............. Test passed OK ..............
make[1]: Leaving directory '/o/src/wp2latex/trunk/sources.cc/atoms'... read more</struct>
The background image library https://ftsoft.com.cz/pictures/pictures.html had severe problems with not fully tested ICO file handling. These problems are fixed now, but the code will be propagated to WP2LaTeX 4.10. The workaround is included in WP2LaTeX 4.9b.
The workaround is to edit a file wp2latex-XXX\sources.cc\images\imgsupp.h.in and set SupportICO to 0 on several places:
#define SupportICO 0
this will block rarely used piece of code.
All bin/win64/wp2latex.exe erased for whole 4.x serie. There has been discovered severe bug that affects only 64 bit windows build. Will be fully fixed in the next version.
WP2LaTeX 4.6 is out http://ftsoft.com.cz/wp2latex/wp2latex.htm . Windows installer is available, source package will be ready soon.
WP2LaTeX has been hosted 20 years on Penguin.cz. This server has been definitively crashed and abandoned.
This is a new location of WP2LaTeX: http://ftsoft.com.cz/wp2latex/wp2latex.htm