Hi.
Please, help me to solve the problem.
I’m using BCC 5.8.2+Harbour 3.1.0(dev) (Rev. 17346)+FWH 12.02.
I compose a simple test:
#include "FiveWin.ch"
FUNCTION Main()
?"Hello,world!"
RETURN NIL
For composing I use next script:
set HBDIR=C:\harbour.3.1
set fwhdir=D:\CLIPPER\FWH.12.02
set GT=gtgui
set hdir=%HBDIR%
set hdirl=%hdir%\lib
set bcdir=C:\Borland\bcc582
setInclude=%HBDIR%\include;%bcdir%\include;%fwhdir%\include
set LIB=%bcdir%\Lib;%HBDIRl%;%fwhdir%\lib
%hdir%\bin\harbour %1 /n /i%fwh%\include;%hdir%\include /w /p %2 %3 > comp.log
echo -O2 -e%1.exe -I%hdir%\include -I%bcdir%\include %1.c > b32.bc
%bcdir%\bin\bcc32 -M -c @b32.bc
echo %bcdir%\lib\c0w32.obj + > b32.bc
echo %1.obj, + >> b32.bc
echo %1.exe, + >> b32.bc
echo %1.map, + >> b32.bc
echo %fwhdir%\lib\FiveH.lib + >> b32.bc
echo %fwhdir%\lib\FiveHC.lib + >> b32.bc
echo %hdirl%\hbrtl.lib + >> b32.bc
echo %hdirl%\hbvmmt.lib + >> b32.bc
echo %hdirl%\%GT%.lib + >> b32.bc
echo %hdirl%\hblang.lib + >> b32.bc
echo %hdirl%\hbmacro.lib + >> b32.bc
echo %hdirl%\hbrdd.lib + >> b32.bc
echo %hdirl%\rddntx.lib + >> b32.bc
echo %hdirl%\rddcdx.lib + >> b32.bc
echo %hdirl%\rddfpt.lib + >> b32.bc
echo %hdirl%\hbsix.lib + >> b32.bc
echo %hdirl%\hbdebug.lib + >> b32.bc
echo %hdirl%\hbcommon.lib + >> b32.bc
echo %hdirl%\hbpp.lib + >> b32.bc
echo %hdirl%\hbcpage.lib + >> b32.bc
echo %hdirl%\hbwin.lib + >> b32.bc
echo %hdirl%\hbcplr.lib + >> b32.bc
echo %hdirl%\hbct.lib + >> b32.bc
echo %hdirl%\xhb.lib + >> b32.bc
echo %hdirl%\hbziparc.lib + >> b32.bc
echo %hdirl%\hbmzip.lib + >> b32.bc
echo %hdirl%\hbzlib.lib + >> b32.bc
echo %hdirl%\minizip.lib + >> b32.bc
echo %hdirl%\png.lib + >> b32.bc
echo %bcdir%\lib\cw32mt.lib + >> b32.bc
echo %bcdir%\lib\uuid.lib + >> b32.bc
echo %bcdir%\lib\import32.lib + >> b32.bc
echo %bcdir%\lib\ws2_32.lib + >> b32.bc
echo %bcdir%\lib\psdk\odbc32.lib + >> b32.bc
echo %bcdir%\lib\psdk\nddeapi.lib + >> b32.bc
echo %bcdir%\lib\psdk\iphlpapi.lib + >> b32.bc
echo %bcdir%\lib\psdk\msimg32.lib + >> b32.bc
echo %bcdir%\lib\psdk\psapi.lib + >> b32.bc
echo %bcdir%\lib\psdk\rasapi32.lib + >> b32.bc
echo %bcdir%\lib\psdk\gdiplus.lib, + >> b32.bc
rem echo %bcdir%\lib\psdk\shell32.lib, >> b32.bc
%bcdir%\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
Programm works, but after closing I receive the following:
1.The intruction at "0x004d995f" referenced memory at" 0x00aa04f4". The memory could not be "read".
2.The eception unknown sofware exception (0x0000027) occured in the application at location 0x7c80debc.
If replace the library hbvmmt.lib with hbvm.lib then everything is fine. But the problem is, that in the real project I need to use MT regime.
Thank you, Igor.