[futurebasic] Deallocation of a pointer not malloced ?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : February 2007 : Group Archive : Group : All Groups

From: John McKernon <mckernonjunk@...>
Date: Thu, 22 Feb 2007 21:54:14 -0500
I'm running into a puzzling error, and don't know what it means or how to
solve it.

I have a function that does:

Long if gTextHndl&<>0
  DEF DISPOSEH (gTextHndl&)
End if

Where gTextHndl& is a handle to some text, usually from the clipboard.

gTextHndl& = FN NEWHANDLE(ScrapSz&)

The DEF DISPOSEH line causes this entry to appear in the console.Log:

FB_Temp(586,0xa000ed88) malloc: ***  Deallocation of a pointer not malloced:
0xffffffff; 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

This only happens when gTextHndl& is non-zero, but not every time, only
after I've done some other very specific things that don't use gTextHndl& at
all.

Any suggestions?

Thanks!

- John