On Tue, 24 Feb 2009, toni...@fwi wrote:

Hi,

> Thanks for answer.
> >So why Pritpal has different results?
> >Can you agree them ;-)
> I agree of course and I don't know, but I compiled harbour with
> DL_ALLOC and the results change in VirtualAlloc, but the rest are the
> same. Why CreateFile, GetStdHandle and InitializeCriticalSection
> remains?

Because it's part of CRTL.
C compiler still have to allocate the console so ask borland
why it does not deallocate it.

> >It's possible that you are linking some external libraries, f.e.
> >FWH ones which cause such effect
> This is not possible, I use hbmk2.

So the above is probably problem in you BCC version.

> > or you are using some C compiler switches.
> Maybe, I'll try with others switches, by now, I'm using these:

And what are the results for above code if you compile it using hbmk2?

   #include <stdlib.h>
   #include <stdio.h>
   int main( int argc, char ** argv )
   {
      char * buffer = malloc( 1000 );
      sprintf( buffer, "number of arguments: %d, argv[0]='%s'\n",
               argc, argv[0] );
      printf( "%s", buffer );
      free( buffer );
      #if defined( __ICC )
         #warning intel compiler
         printf( "intel C compiler\n" );
      #endif
      return 0;
   }

best regards,
Przemek
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to