[futurebasic] Runtime development question

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : August 2001 : Group Archive : Group : All Groups

From: Osamu Shigematsu <shige@...>
Date: Tue, 28 Aug 2001 23:33:01 +0900
on 01.8.28 8:41 PM, Osamu Shigematsu at shige@... wrote:

> BTW, is there anyone who had created application framework with "Carbon
> Event Manager"?
> 
> I'm now trying. I also looking for the way to handle FB's string in
> CFString, insted Pascal String. (I could not understand FB's string stack
> imprementation...)

I'm now checking "Ultra Lite" Runtime code.
I found (may be) a bug in it.

The "gFBStrStk&" is used as global pascal string buffer (stack style data
chunk) and it will be initialize in FN FBCoreInit and allocated Mac Memory
Manager's memory block with NewPtr() Toolbox. But it's never released. (I
konw that it will be released with OS when quitting the App)

I searched all runtime codes with Mgrep App (multibyte-aware grep
application by Hideaki Iimori. It's really cool. Check it out at
http://www.bekkoame.ne.jp/~iimori/ ), but there is no line
"DisposePtr(gFBStrStk&)".

I also wondering there is no vector to cleanup runtime. How, and When should
I release my resources such as gFBStrStk&, to terminate app safety?

TIA.

-- 
Osamu Shigematsu

http://www.ravi.ne.jp/
mailto:shige@...