On Oct 26, 2004, at 11:13 PM, Asher Dunn 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?
Oops, I misread your code. "dim a, b, c as new memoryBlock(4)" does
instantiate a, b and c to the same object.
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>
|