none
Run-Time Check Failure #2 - Stack around the variable 'ps' was corrupted. RRS feed

  • Question

  • I am building my componant code(VC++)  with "x64" configuration option .

    When i was running my project ,once it come out from my custom function "StatusBarProcessWmPaint" ,i am getting the error "Run-Time Check Failure #2 - Stack around the variable 'ps' was corrupted."

    above function consist the following statements.

    PAINTSTRUCT ps;HDC hDC(BeginPaint(hwnd, &ps));

    Can Please guide me how to resolve the above error ?

    Is there any issue while using "PAINTSTRUCT " in x64  configuration,Since i dont face any problem with "Win32" configuration option.

    Monday, April 2, 2012 2:06 PM

All replies

  • Hi Sreenath.

    This forum is for issues related so Microsoft Sync Framework. Is the component you are building using Sync Framework?

    If not, you might post your issue on another forum thread, which relates closed to your environment.

    Adrian

    Monday, April 2, 2012 5:10 PM