On 2009-11-28 at 01:21:35 [+0100], pete.goodeve@xxxxxxxxxxxx wrote: > On Wed, Nov 25, 2009 at 05:47:38PM -0800, pete.goodeve@xxxxxxxxxxxx wrote: [...] > Turns out both Philippe and I made exactly the same mistake -- we used > a local variable for the Resources object! I'm not sure how BeOS handles > this -- the BeBook says "The returned pointer belongs to the resource file; > it's valid until the resource gets changed.", which sort of sounds as if > it remains valid once loaded -- but obviously that's not the case in Haiku. I'm sure "resource file" in this context is supposed to read "BResources object" (how could a pointer belong to a file?). And this in turn means it is destroyed with the object. CU, Ingo