Przemek:

>Thank you. Looks that is fails not 1-st memory allocation or TLS
>access.
>So now next step. Please replace hb_stackInit() function
>in source/vm/estack.c with this code:

>void hb_stackInit( void )
>{
>   HB_TRACE(HB_TR_DEBUG, ("hb_stackInit()"));
>   printf("1. hb_stackInit()\n");fflush(stdout);
>#if defined( HB_MT_VM )
>   hb_stack_alloc();
>#endif
>   printf("2. hb_stackInit()\n");fflush(stdout);
>   {
>      HB_STACK_TLS_PRELOAD
>      printf("3. hb_stackInit()\n");fflush(stdout);
>      printf("4. hb_stackInit(%p)\n", &hb_stack);fflush(stdout);
>      hb_stack_init( &hb_stack );
>      printf("5. hb_stackInit()\n");fflush(stdout);
>   }
>}

>then rebuild Harbour (you do not need clean build) and the same .prg
>code.

Using -bm flag and hbvmmt

-------------------
1. hb_stackInit()
2. hb_stackInit()
3. hb_stackInit()
4. hb_stackInit(00130034)
5. hb_stackInit()
1. HB_THREADSTART
1. hb_threadStartVM
3. HB_THREADSTART
2. hb_threadStartVM
1. hb_stackInit()
                 2. hb_stackInit()
                                  3. hb_stackInit()
4. hb_stackInit(00170274)

     5. hb_stackInit()
             SYS1808:
The process has stopped.  The software diagnostic
code (exception code) is  0001.
-------------------

David Macias



_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to