Free to wrong pool 15dd170 not 15d2750 during global destruction.

From: Gavin Williams (williams.gavin_at_comcast.net)
Date: 07/22/04

  • Next message: ZafT: "Re: Transferring variables between seperate hosts"
    Date: Thu, 22 Jul 2004 17:13:51 -0400
    
    

    Experiencing a problem when using the Win32::OLE and the threads module in
    the same script.

    As soon as the a thread terminates I get an error "Free to wrong pool
    15dd170 not 15d2750 during global destruction."

    Would appreciate some input on how to resolve this.

    Here is a very simple script you can use to demonstrate the problem with:

    #--------------------------------------------------------------------
    use Win32::OLE ;
    use threads ;

    sub dostuff {
      print "Stuff\n" ;
      return 1 ;
    }

    sub startthr {
      my $thr = threads->new( \&dostuff ) ;
      our $tid = $thr->tid ;
    }

    sub stopthr {
      our $tid ;
      my $thr = threads->object( $tid ) ;
      my $result = $thr->join ;
      undef $thr ;
      undef $tid ;
    }

    print "Starting thread\n" ;
    startthr() ;
    sleep(10) ;
    print "Stopping thread\n" ;
    stopthr() ;
    print "A memory pool error should have occurred, and this line will
    probably not print.\n"
    #--------------------------------------------------------------------


  • Next message: ZafT: "Re: Transferring variables between seperate hosts"

    Relevant Pages

    • Re: Detecting is hyperthreading is enabled with WMI?
      ... It is too bad that WMI does not give this info. ... have to be done to the script. ... Public Sub DisplayProcessorInfo ... dim ProcessorSet, Processor ...
      (microsoft.public.windowsxp.wmi)
    • Cant make this page work
      ... I can't make this script work properly. ... The script at the bottom of the html page ... Does someone have a perl ... sub output_trace_headers { ...
      (comp.lang.javascript)
    • Re: Win32_Product doesnt list all installed Applications
      ... 'Must have ADSI and WMI installed on PC running script. ... CONST ForReading = 1 ... Sub Connect ... strHTML = "Smoke'm if you Got'em" ...
      (microsoft.public.windows.server.scripting)
    • Win32_Product doesnt list all installed Applications
      ... 'Must have ADSI and WMI installed on PC running script. ... CONST ForReading = 1 ... Sub Connect ... strHTML = "Smoke'm if you Got'em" ...
      (microsoft.public.windows.server.scripting)
    • Script not Functioning Properly
      ... the script is supposed to automatically reply to any new ... Const CdoPR_ACTION_FLAG = &H10810003 ... Public Sub Folder_OnMessageCreated ...
      (microsoft.public.outlook.program_vba)