Przemek,

>> on the Win95 I get huge amount of CodeGuard erros when trying
>> to run hbmk2.exe (just the exe without parameters)
> What errors?

See sample at the end.

> Do you have the same errors when you use:
>    set HB_USER_CFLAGS=-DHB_FM_STD_ALLOC
> instead of HB_FM_WIN_ALLOC?

Yes, the same type of CodeGuard errors.
(only on the Win95, in the WinNT it works all the time with no errors)
Also, all the errors CodeGuard report have the same ThreadID.

> Can you catch the exact place where it's crashing?
> I'm interesting in C call stack.

Got it!

Harbour is complied with set HB_USER_CFLAGS=-DHB_FM_STD_ALLOC

--tt1.prg--
proc test
return
-----------

..\bin\hbmk2 -debug -inc -mt tt1 -w -n -b cg32.lib

(I used -inc so I'll have c output files, but it was a clean test)

When running tt1.exe on Win95 I get:

Error 00001. 0x100400 (Thread 0xFFFD209F):
Access in invalid memory: Attempt to access 488 byte(s) at 0x00000000.
memset(0x00000000, 0x00 ['
Call Tree:
   0x004483DD(=TT1.EXE:0x01:0473DD) ../../../../ESTACK.C#165
   0x004490D2(=TT1.EXE:0x01:0480D2) ../../../../ESTACK.C#354
   0x0040D69F(=TT1.EXE:0x01:00C69F) ../../../../HVM.C#670
   0x0040DF69(=TT1.EXE:0x01:00CF69) ../../../../HVM.C#916
   0x00479889(=TT1.EXE:0x01:078889) ../../../../MAINSTD.C#96
   0x0053DCDE(=TT1.EXE:0x01:13CCDE)
------------------------------------------
Error 00002. 0x110400 (Thread 0xFFFD209F):
Access in invalid stack: Attempt to access 4 byte(s) at 0x007BFD70.
Call Tree:
   0x00476B6C(=TT1.EXE:0x01:075B6C) ../../../../EXTRAP.C#197
   0xBFF9A3FB(=KERNEL32.DLL:0x02:0223FB)
   0x005369AE(=TT1.EXE:0x01:1359AE)
   0xBFF7663C(=KERNEL32.DLL:0x01:00563C)
   0xBFF859FA(=KERNEL32.DLL:0x02:00D9FA)
   0xFFECBAD7
------------------------------------------
Error 00003. 0x110000 (Thread 0xFFFD209F):
Pointer in invalid stack: 0x007BFD70.
Call Tree:
   0x00476C16(=TT1.EXE:0x01:075C16) ../../../../EXTRAP.C#204
   0xBFF9A3FB(=KERNEL32.DLL:0x02:0223FB)
   0x005369AE(=TT1.EXE:0x01:1359AE)
   0xBFF7663C(=KERNEL32.DLL:0x01:00563C)
   0xBFF859FA(=KERNEL32.DLL:0x02:00D9FA)
   0xFFECBAD7
------------------------------------------

:

------------------------------------------
Error 00031. 0x110400 (r) (Thread 0xFFFD209F):
Access in invalid stack: Attempt to access 4 byte(s) at 0x007BFD8C.
Call Tree:
   0x00476BC6(=TT1.EXE:0x01:075BC6) ../../../../EXTRAP.C#203
   0xBFF9A3FB(=KERNEL32.DLL:0x02:0223FB)
   0x005369AE(=TT1.EXE:0x01:1359AE)
Error 00032. 0x300010 (Thread 0xFFFD209F):
Resource leak: The memory block (0xBD392C) was never freed
The memory block (0x00BD392C) [size: 12 bytes] was allocated with malloc
Call Tree:
   0x00453023(=TT1.EXE:0x01:052023) ../../../../FM.C#592
   0x00446562(=TT1.EXE:0x01:045562) ../../../../DYNSYM.C#122
   0x00446A10(=TT1.EXE:0x01:045A10) ../../../../DYNSYM.C#252
   0x00426583(=TT1.EXE:0x01:025583) ../../../../HVM.C#7790
   0x00426747(=TT1.EXE:0x01:025747) ../../../../HVM.C#7830
   0x00408F3C(=TT1.EXE:0x01:007F3C) debugger.c#771
------------------------------------------
Error 00033. 0x300010 (Thread 0xFFFD209F):
Resource leak: The memory block (0xBD5924) was never freed
The memory block (0x00BD5924) [size: 12 bytes] was allocated with malloc
Call Tree:
   0x00453023(=TT1.EXE:0x01:052023) ../../../../FM.C#592
   0x00446562(=TT1.EXE:0x01:045562) ../../../../DYNSYM.C#122
   0x00446A10(=TT1.EXE:0x01:045A10) ../../../../DYNSYM.C#252
   0x00426583(=TT1.EXE:0x01:025583) ../../../../HVM.C#7790
   0x00426747(=TT1.EXE:0x01:025747) ../../../../HVM.C#7830
   0x004E20A5(=TT1.EXE:0x01:0E10A5) rddsys.c#24
------------------------------------------

:

And many more, I had to kill the program.

Without -mt flag, the program run with no errors.


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

Reply via email to