On Wed, 18 Nov 2009, Chen Kedem wrote:

Hi,

> Executing hbmk2.exe (Rev12895) on a Win95 I get an error message that
> the program try to access undefined function InterlockedCompareExchange
> in KERNEL32.DLL
> This function exists on WinNT but not on Win95,
> maybe the same is true for Win98.
> It is used in vm/dlmalloc.c and vm/fm.c

Thank you very much for the information. This function is used only
by DLMALLOC code which is enabled by default in MSVC, BORLAND, MINGW and
WATCOM windows  builds.
Please try to recompile Harbour without DLMALLOC using HB_FM_WIN_ALLOC
macro, i.e.:
   set HB_USER_PRGFLAGS=-DHB_FM_WIN_ALLOC
And check if it's enough to run Harbour application in Win95.
If yes then we can change dlmalloc.c to use something different for
spinlocks what will not cause problems for Win9x.

best regards,
Przemek
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to