John Elliot wrote:
> >Now the question is, since SomeRandomBoxApi takes a pointer to a
> >_D3DBOX (which is equivalent to a pointer to a Box), why pass in
> >the Box by value?
> 
> Just thinking out loud, but might it have something to do 
> with threading concerns? If I hand out a reference to something on
> my stack to a strange API how do I know that it will finish with it
> before my stack changes..

But it isn't a strange API. After all, presumably the Managed DirectX
API designers understand how the DirectX API works. I'm no DirectX
programmer, but I assume that since it isn't documented, that the API
will not hold on the pointer.

Regards,
Jeroen

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com
Some .NET courses you may be interested in:

NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnetls

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to