[Bf-committers] Win32 API problems on VC11 and Win 8

Jürgen Herrmann shadowrom at me.com
Tue Apr 30 21:05:15 CEST 2013


Hi Blender devs,

 

i just read some Win32 docs on msdn and found out that GetAnythingLong and
SetAnythingLong Win32 apis are not 64-bit safe.

Microsoft recommends using the Get/Set/AnythingLongPtr to be safe.

See here:

 
<http://msdn.microsoft.com/en-us/library/windows/desktop/ms633584(v=vs.85).a
spx>
http://msdn.microsoft.com/en-us/library/windows/desktop/ms633584(v=vs.85).as
px

http://msdn.microsoft.com/en-us/library/windows/desktop/ms633591(v=vs.85).as
px

 <http://msdn.microsoft.com/en-us/library/x30bxzee.aspx>
http://msdn.microsoft.com/en-us/library/x30bxzee.aspx

http://msdn.microsoft.com/en-us/library/xah23k5k.aspx

 

Windows 8 in combination with the VC++2012 Runtime seems to react violently
here.

But even without this combination this should be made safe, I think.

 

I think the Gamengine problems result deeply in the Windowmanager or even in
GHOST_Win32 because of this.

I know VS 2012 is not supported yet, but I think it’s a good chance to speed
up Blenders performance.



NVidia will bring Cuda 5.5 RC next month and VC2012 Express supports all
features needed to build a fully featured version of Blender including
OpenMP.

So it is actually possible to get a working VC2012 build out into the world
with 2.68 or 2.69.

 

Best regards,

 

Jürgen



More information about the Bf-committers mailing list