VSDK.framework 1.9.8 problem using VDK_String = assignment

Ruslan Zasukhin sunshine at public.kherson.ua
Fri Aug 1 07:40:55 CDT 2003


on 8/1/03 5:15, Matthew Jew at mjew at icnc.com wrote:

> Ruslan,
> 
> I am using the newly uploaded PB 1.9.8 VSDK.framework.
> 
> I compile and run the "Valentina Cocoa Test" (unmodified).
> 
> The following errors occur:
> 
> *** malloc[1284]: Deallocation of a pointer not malloced: 0x24d000;
> This could be a double free(), or free() called with the middle of an
> allocated block; Try setting environment variable MallocHelp to see
> tools to help debug
> *** malloc[1284]: Deallocation of a pointer not malloced: 0x24cfd0;
> This could be a double free(), or free() called with the middle of an
> allocated block; Try setting environment variable MallocHelp to see
> tools to help debug
> *** malloc[1284]: Deallocation of a pointer not malloced: 0x24cfe0;
> This could be a double free(), or free() called with the middle of an
> allocated block; Try setting environment variable MallocHelp to see
> tools to help debug
> *** malloc[1284]: error for object 0x1de970: Incorrect checksum for
> freed object - object was probably modified after being freed; break at
> szone_error
> *** malloc[1284]: error for object 0x203ba0: Incorrect checksum for
> freed object - object was probably modified after being freed; break at
> szone_error
> *** malloc[1284]: Deallocation of a pointer not malloced: 0x24d000;
> This could be a double free(), or free() called with the middle of an
> allocated block; Try setting environment variable MallocHelp to see
> tools to help debug
> *** malloc[1284]: Deallocation of a pointer not malloced: 0x24cff0;
> This could be a double free(), or free() called with the middle of an
> allocated block; Try setting environment variable MallocHelp to see
> tools to help debug
> *** malloc[1284]: error for object 0x1da900: Incorrect checksum for
> freed object - object was probably modified after being freed; break at
> szone_error
> 
> It is happening in the string assignments, such as
> 
>  [[self database] databaseDefinition]->getWordTable()->mfWord =
> [foundWord UTF8String];
> 
> The error doesn't happen on the first string assignment. But on the 2nd
> and later passes
> through the loop, the error occurs.
> 
> It seems the VDK_String "=" operator is causing this error on the 2nd
> usage.

Probably in example was used free(), but must be used delete.
Because inside of kernel I use new. So outside must be used delete.

It seems I have forget put updated example from Arthur.
I will send you updated example for test/

-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list