Home Dashboard Directory Help
Search

VS2012.2 v110_xp broken - "The procedure entry point InitializeCriticalSectionEx could not be located in the dynamic link library KERNEL32.dll" by Wouter_Demuynck


Status: 

Closed
 as Deferred Help for as Deferred


54
0
Sign in
to vote
Type: Bug
ID: 783276
Opened: 4/9/2013 7:25:56 AM
Access Restriction: Public
6
Workaround(s)
view
27
User(s) can reproduce this bug

Description


After installing Visual Studio 2012 Update 2, our C++ modules that were targeting v110_xp are no longer running on Windows XP/Windows Server 2003.

When launching the application, the following error now shows up (messagebox):

"XXXXXX.exe - Entry Point Not Found"

"The procedure entry point InitializeCriticalSectionEx could not be located in the dynamic link library KERNEL32.dll"

The exact same code compiled fine with Update 1 worked fine on XP/Server 2003.

I tried uninstalling Update 2 but now I cannot download Update 1 anymore, all references online have been updated to point to update 2...
Details
Sign in to post a comment.
Posted by Microsoft on 5/13/2013 at 2:32 PM
Hi simdoc, can you provide more information about your solution setup, it would be ideal if you could give us a self contained repro, that we can try here. By Intel C++ do you mean that you have a custom project flavor? What errors do you see (entry point not found?)? Do you use ATL from your Intel C++ project?

The Intel C++ compiler/VS-integration is not owned by Microsoft, thus for any issues regarding the generated outup or XP support, please check with Intel. However I'd be happy to help you find the problem. If the Intel C++ toolchain does not have a concept of toolset, then try defining "_USING_V110_SDK71_"
Posted by Microsoft on 5/13/2013 at 2:31 PM
Hi simdoc, can you provide more information about your solution setup, it would be ideal if you could give us a self contained repro, that we can try here. By Intel C++ do you mean that you have a custom project flavor? What errors do you see (entry point not found?)? Do you use ATL from your Intel C++ project?

The Intel C++ compiler/VS-integration is not owned by Microsoft, thus for any issues regarding the generated outup or XP support, please check with Intel. However I'd be happy to help you find the problem. If the Intel C++ toolchain does not have a concept of toolset, then try defining "_USING_V110_SDK71_"
Posted by simdoc on 5/13/2013 at 9:34 AM
I have a mix of Intel C++ and vc110_xp projects in my solution. I need Intel C++ for the math improvements on many of the projects. The issue arises from the projects compiled with Intel C++. How do you recommend solving that?
Posted by Microsoft on 5/11/2013 at 6:18 PM
Hi tofutim, simdoc

Please do no use the _ATL_XP_TARGETING macro, it is only used internally, please instead target the vc110_xp toolset.

tofutim, did you set the Platform Toolset to vc110_xp?
Posted by tofutim on 5/11/2013 at 5:18 PM
Hi, I have installed Update 3 RC but the problem persists. @simdoc How and where do I define _ATL_XP_TARGETING?
Posted by simdoc on 5/9/2013 at 3:58 PM
It looks like _ATL_XP_TARGETING has to be #define'd. Is that the intent? Is that going to be the case in the RTM and from then out?
Posted by ta.speot.is on 5/8/2013 at 12:39 AM
I think it is worth being more clear: a Release Candidate of Update 3 is now available.

From http://www.microsoft.com/en-us/download/details.aspx?id=38832

Statement of Support:

Visual Studio 2012 Update 3 RC and Team Foundation Server 2012 with Update 3 RC are “go-live”. This means that customers can use these builds in production environments. **These are still pre-releases**, so there may be some bugs that will be fixed for the final release. Upgrade from Update 3 RC to Update 3 RTM is supported. In order to upgrade to future releases, the customer must first upgrade from Update 3 RC to Update 3 RTM.
Posted by YLzhou on 5/7/2013 at 8:14 PM
I have Installed update 3 .
when I set "PROJECT ->PROPERTIES ->Confiuration properties->general->use of ATL " to "Static Link to ATL " .Then OK .
Posted by Microsoft on 5/7/2013 at 5:16 PM
Update 3 is now available, please refer to this post for more information http://blogs.msdn.com/b/vcblog/archive/2013/05/07/fix-visual-studio-2012-update-2-breaks-windows-xp-targeting-with-atl-and-or-statically-linking-mfc.aspx
Posted by Microsoft on 5/7/2013 at 5:16 PM
Update 3 is now available, please refer to this post for more information http://blogs.msdn.com/b/vcblog/archive/2013/05/07/fix-visual-studio-2012-update-2-breaks-windows-xp-targeting-with-atl-and-or-statically-linking-mfc.aspx
Posted by Microsoft on 5/6/2013 at 4:16 PM
Yes, this is fixed in Update 3
Posted by MathiasWe on 4/30/2013 at 6:27 AM
Will this be fixed in Visual Studio 2012 Update 3?
Posted by ITSTH on 4/24/2013 at 1:34 AM
@Microsoft: When will this issue be fixed? Currently we're not able to publish new versions of our software due to this problem.
Posted by turmansk on 4/19/2013 at 12:33 PM
Teds fix works for me too.
Was building on Win7 and testing on XP so had to make some mods to Ted's xpatl.cpp file
Also had some projects that did not include asm in the builds and we had to explicitly set the item type by right clicking the asm file and setting conf props->general->Item Type to the MASM asembler
Posted by JC-Winboats on 4/19/2013 at 4:31 AM
Ted's workaround worked for me also. Thanks Ted you are a life saver!
Posted by Anthony Wieser on 4/18/2013 at 10:49 PM
Ted's workaround does the trick, and fixes this.
Posted by JC-Winboats on 4/18/2013 at 5:05 PM
Add another to the list. Update 2 has broken our program on XP. It is a Native C++ using MFC and we statically link. I may try uninstalling VS 2012 and starting over, but only installing SP1. I hope that works cause we have a lot of customers still using XP.
Posted by turmansk on 4/18/2013 at 3:05 PM
One more to the list. Same issue with it not working after Update 2.
Have MFC in a shared DLL, /Md by default.
Tried the workaround from ted with build customization too, didn't work.
Hope we get a fix soon.
Posted by Microsoft on 4/16/2013 at 4:25 PM
Thanks for your reports on this issue, we are currently tracking this issue thru connect bug 783137
Posted by Microsoft on 4/16/2013 at 4:24 PM
Thanks for your reports on this issue, we are currently tracking this issue thru connect id 783137
Posted by Microsoft on 4/16/2013 at 4:24 PM
Thanks for your reports on this issue, we are currently tracking this issue thru connect id 783137
Posted by ExtraValueNeil on 4/15/2013 at 5:51 AM
Same issue here. It wouldn't be a huge problem if we could go back to SP1 for the time being, but that's no longer available from MS. Hopefully an official fix comes out soon.
Posted by MatthiasGross on 4/13/2013 at 1:54 AM
We also have this problem. After updating to SP2 we got reports from our customers, they had exactly this problem.
I hope this can be fixed without uninstalling SP2.
I think a hotfix or instructions how to change the code to avoid this problem would be appropriate,
but I fear the support of XP hasn't highest priority for MS, I believe this is a mistake.

Until this is not fixed SP2 is pointless for us - many of our customers still use XP.
Posted by MobiCat on 4/11/2013 at 12:12 PM
I am facing this exact same problem. I was able to uninstall Update 2 and then do a repair on the main installation to get it working again. I would very much like an official new update that does not break XP targeting.
Posted by Serhiy Horobets on 4/11/2013 at 7:38 AM
Same problem here. I'm going to remove Update 2 and reinstall VS with Update 1.
Posted by Sha007007 on 4/11/2013 at 2:53 AM
We too faced the same problem. MS should provide either a hotfix or a link to Update 1. Else, we have to compile statically linked MFC apps in VS 2010.
Posted by MeasureWithSoundCard on 4/10/2013 at 10:19 PM
I am facing the same problem. Anxiously waiting for the solution. The posted workarounds by VSBs does not work.
Posted by Microsoft on 4/9/2013 at 11:28 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Microsoft on 4/9/2013 at 7:51 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.
Posted by YLzhou on 5/7/2013 at 8:16 PM
I have Installed update 3 .
when I set "PROJECT ->PROPERTIES ->Confiuration properties->general->use of ATL " to "Static Link to ATL " .Then solve this problem .
Posted by UMU618 on 4/25/2013 at 12:24 AM
use /OPT:REF link option may solve this problem.
Posted by Wouter_Demuynck on 4/15/2013 at 11:02 PM
For now, I ended up re-installing Update 1.

- Uninstall VS2012.2 (also removed Update 1)

- Repair Visual Studio 2012

- Install VS2012 Update 1 (http://go.microsoft.com/fwlink/?LinkId=272396)
Posted by Ted_ on 4/15/2013 at 4:24 AM
http://tedwvc.wordpress.com/2013/04/14/how-to-get-visual-c-2012-update-2-statically-linked-applications-to-run-on-windows-xp/
Posted by MeasureWithSoundCard on 4/11/2013 at 12:17 AM
Use MFC in a share DLL instead, then change C/C++ RunTime library to Multi-Thread DLL (/MD), install VC++ 2012 redistributable package.
Posted by VSBs on 4/10/2013 at 1:50 PM
http://social.msdn.microsoft.com/Forums/en-US/visualstudiogeneral/thread/f0477c9f-8a2c-4e6b-9f5a-cd2469e216c4