Access problem during b2PolygonDef creation

Hello,

I have to write an interface between Box2D and the graphic library SFML. Now I have a problem
with the creation of a b2PolygonDef and I don't now what's the problem.
On my system with Windows 7 x64 everything works fine, but on Windows XP x32 it fails.
The fifth line of the Code is maybe the problem, if I comment this line, there is no failure.

Code:
      b2BodyDef groundBodyDef;
      groundBodyDef.position.Set(windowWidth/20.0f, -2.0f);
      b2Body* groundBody = physicWorld->createBody(groundBodyDef);

      b2PolygonDef groundShapeBottom;
      groundShapeBottom.SetAsBox(500.0f, 10.0f);
      //groundBody->CreateShape(&groundShapeBottom);


I used Visual Studio 2008 Debugger at this is the error:
Code:
Unhandled exception at 0x0040cbc9 in SFML-Box2D.exe: 0xC0000005:
Access violation while writing at position 0x002317e0.


Please can somebody help me?
If I remember correctly, the unit of measurement in Box2d is reminiscent of meters; you might want to consider using a smaller scale and just zooming in.

-P
Ok, thank you.
I fixed the problem, apparently it was a problem in the library.

But now I get the error at another position, later in the code
where I instanziate another b2PolygonDef.

The point confusing me is that everything works fine on
Windows 7 x64 and the program built there runs also on my WindowsXP system.

But if I build it on my WindowsXP system, it doesn't work.
Bump, I'm having the same problems except I can't even get it to run on my Windows 7 64x, it just crashes at runtime with the aforementioned error. Is it just the API failing because the initialized objects are too large?
No, the object size should not cause a crash. Look at the call stack to learn what's going on. Run it in a debugger.

Original thread: https://box2d.org/forum/viewtopic.php?t=4455