realbasic-games
[Top] [All Lists]

Re: MemoryBlock Bug?

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: MemoryBlock Bug?
From: Asher Dunn <asher at fireyesoftware dot com>
Date: Tue, 26 Oct 2004 23:13:52 -0400
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <BDA431BD dot 5818%mauitom at maui dot net>

On Oct 26, 2004, at 10:54 PM, Thomas Cunningham wrote:

(maybe my normals are getting mangled when I load them into the
memoryBlock).

Yes, perhaps this is why. I had my normal calculations utilizing
memoryblocks too. I switched them because of this. Put this in a pushbutton
and examine the debugger.

  Dim a,b,c As New MemoryBlock(4)

  Dim e,f,g As MemoryBlock
  e = New MemoryBlock(4)
  f = New MemoryBlock(4)
  g = New MemoryBlock(4)
  break

a,b and c all have the same object ID's. If you use them as separate
objects, it gets messed up. I thought that that first dim statement was the
equivalent as the e,f and g instantiations?

Am I missing something or is this a bug?

The same object IDs??!?!!
What that code *should* do is create 3 new memoryBlocks. 3 _different_ objects. Are you sure you saw correctly?

Asher Dunn
--------------------------------------------------------
President and Head Developer of Fireye Software <http://www.fireyesoftware.com/> Make PDFs from your RB app <http://www.fireyesoftware.com/code/pdfclasses/>
AIM and Yahoo: fireye7517
REALbasic 5.5.3 Mac OS X 10.3.5

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>