Jump to content
  • entries
    943
  • comments
    5,899
  • views
    923,763

iHurt


Josh

1,396 views

 Share

Here's the code:

	Print("context = "+GetObjectAddress(context));
Print("Graphicsdriver: "+GetObjectAddress(graphicsdriver));
Print("GetGraphicsdriver: "+GetObjectAddress(GetGraphicsDriver()));
Print("ActiveGraphicsDriver: "+GetObjectAddress(ActiveGraphicsDriver));
Print("context->graphicsdriver: "+GetObjectAddress(context->graphicsdriver));
Print("context = "+GetObjectAddress(context));

Here's the output, running on an iPhone 4:

context = 0x06921400
Graphicsdriver: 0x0694e800
GetGraphicsdriver: 0x0694e800
ActiveGraphicsDriver: 0x0694e800
context->graphicsdriver: 0x0694e800
context = 0x06921400

Here's the output, running on an HTC Evo 4G:

08-30 11:34:02.319: INFO/LEAndroid(8250): context = 0x00270168
08-30 11:34:02.319: INFO/LEAndroid(8250): Graphicsdriver: 0x0026f0d8
08-30 11:34:02.319: INFO/LEAndroid(8250): GetGraphicsdriver: 0x0026f0d8
08-30 11:34:02.329: INFO/LEAndroid(8250): ActiveGraphicsDriver: 0x0026f0d8
08-30 11:34:02.329: INFO/LEAndroid(8250): context->graphicsdriver: 0x30203a72
08-30 11:34:02.329: INFO/LEAndroid(8250): context = 0x002704dc

On the Evo, even printing out the object hex address twice will result in two different values:

Print("context = "+GetObjectAddress(context));
Print("context = "+GetObjectAddress(context));

Nothing else to say at the moment. Will let you know when I find out what is going on. B)

 Share

1 Comment


Recommended Comments

I got word back from our Android programmer about the likely cause. It's great to have someone around who is a counterbalance to my strengths and weaknesses as a programmer.

Link to comment
Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...