Re: operator delete mismatch in ODatabaseMetaDataResultSet

Ocke Janssen <[email protected]> Fri, 26 Mar 2010 07:28:13 +0100
Newsgroups gmane.comp.openoffice.dba.devel
Organization Sun Microsystems GmbH
Message-ID <[email protected]>
Hi Terrence,

Great, so you would become a OOo Base developer :-)

I applied your patch in the cws dba33f. Could please add the patch 
directly to the issue and marked as a patch, next time. That would make 
things more easier for me to find the issues. I'm always interested in 
applying patches fast in the source cde.

Best regards,

Ocke

Terrence Enger wrote:
> Greetings,
>
> And here is another one, the same except that the source file is
> connectivity/source/drivers/odbcbase/OResultSet.cxx, the line number
> of new[] is 119, and the line number of scalar delete is 165.
>
> So, how many issues should there be for "operator delete mismatch"?
> An awful lot of these come up in my (non-production) build when I work
> in Base; I just dug into this one for a change while I wait for advice
> on issue 94543.  I have already opened issue 110236
> <http://www.openoffice.org/issues/show_bug.cgi?id=110236> for the same
> assertion arising from a different place.
>
> I invite your guidance.
>
> Cheers,
> Terry.
>
>
> On Mon, 2010-03-22 at 08:28 -0400, Terrence Enger wrote:
>
>   
>>     summary         : operator delete mismatch in ODatabaseMetaDataResultSet
>>     
>
>   
>> And then the patch ...
>>
>>     --- ODatabaseMetaDataResultSet.cxx_m75    2010-03-21 23:37:01.000000000 -0400
>>     +++ ODatabaseMetaDataResultSet.cxx_tje    2010-03-21 23:38:03.000000000 -0400
>>     @@ -97,7 +97,7 @@
>>               osl_incrementInterlockedCount( &m_refCount );
>>               dispose();
>>       }
>>     - delete m_pRowStatusArray;
>>     + delete [] m_pRowStatusArray;
>>      }
>>      // -------------------------------------------------------------------------
>>      void ODatabaseMetaDataResultSet::disposing(void)
>>     
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>   


-- 
Ocke Janssen                      Tel: +49 40 23646 661, x66661
Dipl. Inf(FH)                     Fax: +49 40 23646 550
Sun Microsystems Inc.
Nagelsweg 55                      mailto:[email protected]
D-20097 Hamburg                   http://www.sun.com/staroffice

Sitz der Gesellschaft:
Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Thomas Schroeder