Visual Studio 2015 strange failure in debug mode

Hi,
I installed the latest vs 2015 on windows 7 (vmware) to test it compiling and running a set of applications (desktop) I have.
The compilation is ok but when I try to run one of those apps, I get this error (running the debug version):
Please note that if I run in release mode, there is no error at all!?
Following the call stack, it seems that it fails somewhere in the STL releasing a temporary string or something like that. Unfortunately, I cannot create just a small example showing the failure.
Any ideas of why will this failure be in debug mode only? Note that the call stack shows that this code:
    ~_String_alloc() _NOEXCEPT
        {    // destroy the object
        _Free_proxy();
is run from xstring and it fails calling "_Free_proxy();". Also note that this is called ONLY when _ITERATOR_DEBUG_LEVEL is defined. No such code is run in release mode.
Thanks,
G.

Hi,
I think I found the issue and here are some details, hopping that it will help others running in the same problem(s).
First, I did not have just the issue starting this thread, there was another issue related.
I have created a C++ DLL exporting common functions I used in various applications. Most of the time I used this DLL from console programs (servers). However I had two GUI programs where I also used this DLL, one based on MFC and the other on WTL.
These two programs have the issues as follows:
   When the MFC program is run in debug mode under the IDE, at exist the IDE will show a memory leak. This happened with both vs 2013 and vs 2015. This is a debug mode only issue.
   When the WTL program was run in debug mode under the IDE, it showed no problems at all when using vs 2013 but had the issue described at the starting of this thread under vs 2015. This is also a debug mode only issue.
It turned out that mfc issue was caused by a known bug in MFC where the termination code of the mfc app, is run BEFORE the termination of code of the DLL. This way the IDE give a false memory leak!! There were actually no memory leaks, just the false alarm!
I am not sure exactly what is going on in the WTL but the issue seems somehow similar in the sense that something not loaded in time from the DLL caused the problem.
The solution: For both projects in fact it was very easy to fix this issue by setting the option to delay load the DLL. That in turn will force the MFC to wait to first unload the DLL and then
there is no false leakage info! This also as I said fixed the WTL issue but I am not sure why? Anyway the WTL is no longer maintained (too bad!!) so who know?!
Bottom line: if you use DLLs from WTL or from MFC, delay load your DLLs! Otherwise you may get this nasty false flags in debug mode and the assert issue.
G.

Similar Messages

  • Visual Studio 2015 CTP - Javascript support missing

    I had Visual Studio 2015 CTP 4 installed and now CTP6 - In both cases it was missing Javascript support.
    - Not showing syntax highlighting for .js file
    - Intellisense  not working for .js files
    Also when i go to tools/options/Text Editor - Javascript language section is missing. See  image and its comparison with VS2013.
    From the desk of Pinal Bhatt | http://www.PBDesk.com

    If
    you are
    not
    installed
    in the
    default
    folder,then go to C:\Program Files (x86)\Microsoft Visual Studio 14.0 copy to
    your
    install
    folder(ex.F:\Microsoft Visual Studio 14.0)
    open the
    Developer
    Command
    Prompt as administrator,run command:
    devenv /setup
    devenv.exe /InstallVSTemplates
    Reference
    articles:http://blog.lishewen.com/post/2015/03/03/vs2015-ctp6-after-installation-without-javascript-intellisense-solution-templates-and-editor
    算神的博客

  • Unable to open project in Visual Studio 2015 Preview

    I have a problem with one of my solutions. It freezes the application on load. Visual Studio 2015 Preview works for all other projects and loads up correctly. But this one solution file doesn't load. Have anyone had this issue and what is the best way
    to report it?

    Thanks for pvdg42 's help.
    Hi spoldman,
    You would check whether your VS2015 version supports this kind of apps, or whether your VS IDE has the enough requirements to develop a specific app. 
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Azure Webjob created in Visual Studio 2015 fails to run

    An Azure Webjob created in Visual Studio 2015 (any job, including the sample project) fails to run in an azure website with the following error:
    Job failed due to exit code -2146232576
    Note: the same project created in Visual Studio 2013 deploys and runs successfully.
    How can I fix the project in VS2015?

    Not the OP but I've the same problem.
    I created a continuously running webjob with the following code. The job runs perfectly fine locally.
    Program.cs
    static void Main()
    var host = new JobHost();// config);
    host.RunAndBlock();
    Functions.cs
    public static void ProcessQueueMessage([QueueTrigger("queue")] string message, TextWriter log)
    log.WriteLine(@"triggered job TriggeredWebJob");
    Here's the log from Azure WebJob:
    [03/16/2015 16:07:33 > 28695a: SYS INFO] Status changed to Starting
    [03/16/2015 16:07:34 > 9cb303: SYS INFO] Status changed to Starting
    [03/16/2015 16:07:34 > 28695a: SYS INFO] Run script 'TriggeredWebJob.exe' with script host - 'WindowsScriptHost'
    [03/16/2015 16:07:34 > 28695a: SYS INFO] Status changed to Running
    [03/16/2015 16:07:35 > 28695a: SYS ERR ] Job failed due to exit code -2146232576
    [03/16/2015 16:07:35 > 28695a: SYS INFO] Process went down, waiting for 60 seconds
    [03/16/2015 16:07:35 > 28695a: SYS INFO] Status changed to PendingRestart

  • Visual Studio 2015 Enterprise and SSDT -- which SQL Server version(s) targetted for SSIS and SSRS

    With Visual Studio 2015 Enterprise Preview, I see that Sql Server Data Tools (SSDT) are included.  What I need to know is, when I create an Integration Services Package or Reporting Serivces report, on which versions of SQL Server can the result be
    deployed?
    e.g. Can I deploy an SSIS package created this way on Sql Server 2008R2?  2012? 2014?
    If all three, how to I tell Visual Studio the target environment for the package?

    I think, SSDT BI templates for VS2015 is not available yet. If it's available or yet to come please post the URL if you have got details about it.
    Below recent thread should answer your question. Please see last reply by Katherine.
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/ea9c0360-d4f4-480e-b022-52b9d9189c51/visual-studio-2015-ssis-development-backward-compatibility-can-we-develop-2008-2012-2014?forum=sqlintegrationservices
    Cheers,
    Vaibhav Chaudhari
    [MCTS],
    [MCP]

  • Recommended way to unit test mobile cross platform C++ in Visual Studio 2015

    Hello,
    I'm playing with the new Visual Studio 2015 to check its capabilities for cross platform development using C++ as coding language. I've seen several videos in Channel9 about this feature but I don't remember hearing in any of these a word about how
    to unit test such projects from Visual Studio 2015. Is there some recommended way to create unit tests for such projects?
    I'm not sure I can use Visual Studio test projects for C++ to test the android library or the Windows Phone 8.1. If I add a new platform ARM to a test project of those, I cannot select in the platform toolset combo the values that I have for my libraries
    (Clang 3.4 and Windows 8.1 respectively). So it seems that such test projects are not addressed for cross platform c++ in VS2015.
    I also have tried to make a second cross platform library project to contain the tests, adding there the Catch.h file from catch framework or adding the files from Google Test framework. My idea was to link each cross platform test library with their corresponding
    "production code" libraries. In both cases (catch and gtest) I have problems when trying to compile the test framework files (not sure if it is not possible or just my fault being new at C++ for mobile platforms).
    Has anyone succeeded unit testing the cross platform c++ code in VS2015? How?
    Thanks in advance,
    Jorge.

    Hi Jorge,
    Thanks you for posting in MSDN forum.
    Based on your issue, since VS2015 Preview is previews for the next major release of Visual Studio, currently we forums don’t provide support for VS2015 Preview. So the product team would accept the suggestions or feedbacks for the VS2015 now.
    So you can submit the feedback/suggestions to Microsoft Connect feedback portal:
    http://connect.microsoft.com/VisualStudio/feedback/CreateFeedback.aspx, Microsoft engineers will evaluate them seriously. Thanks for your understanding.
    After you submit the feedback, you can post the link here which will be beneficial for other members with the similar issue. And I will help you to vote it.
    Thank you for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Cheapest option for buying Visual Studio 2015 for development

    Last year I bought Microsoft Action Pack subscription thinking the software they give me will last forever, but all software downloaded have turned into Trial version as Microsoft says they were for internal use till subscription lasted.
    What is the best and cheapest option for buying Visual Studio 2015?
    Please advise
    This topic first appeared in the Spiceworks Community

    Last year I bought Microsoft Action Pack subscription thinking the software they give me will last forever, but all software downloaded have turned into Trial version as Microsoft says they were for internal use till subscription lasted.
    What is the best and cheapest option for buying Visual Studio 2015?
    Please advise
    This topic first appeared in the Spiceworks Community

  • I can't find the appx or xap package from windows app studio souce code in visual studio 2015

    I created a project from Windows App Studio then downloaded the source code and modify it. I set all configuration to Release Any CPU. But after rebuilding solutions several times there are no appx or xap package files found. How to create appx package
    from windows app studio source code using visual studio 2015?

    For that right click on the solution folder in Visual Studio, and you would find an option to create App Packages. 
    Hope this might help! 
    Create an app package
    Happy Coding!

  • Visual Studio 2015 compatibility with older versions

    Hi,
    I have already installed Visual Studio 2010 and 2013 on my Windows Server 2012.
    I want to know can I install Visual Studio 2015 on same machine? is there possible any conflict with older version?
    I have many projects in old version and need to open and work on them too.  Thanks.

    Hi,
    I have already installed Visual Studio 2010 and 2013 on my Windows Server 2012.
    I want to know can I install Visual Studio 2015 on same machine? is there possible any conflict with older version?
    I have many projects in old version and need to open and work on them too.  Thanks.
    You should be able to install Visual Studio 2015 alongside 2013 and 2010. However, I'd advise against it until the release version of Visual Studio 2015 becomes available. There may be issues down the road upgrading the preview version of VS 2015 with the final
    retail version.

  • Known Issue: You cannot install the Visual Studio Tools for Universal Windows Apps on a pre-RC build of Visual Studio 2015 (Windows 10 Insider Preview SDK and tools, April 2015 release)

    The Tools for Universal Windows Apps requires Visual Studio 2015 RC. If you have an earlier build installed, for example, Visual Studio 2015 CTP6, you must first uninstall Visual Studio 2015 and the Tools for Windows.

    To uninstall earlier versions of Visual Studio 2015 and the tools for Universal Windows app development,
    Go to Control Panel, and select Programs & Features. 
    Select Microsoft Visual Studio 2015 and click Change.
    Click Remove, and then Yes.
    Next, select Microsoft Visual Studio 2015 Tools for Windows 10, and click
    Change.
    Click Remove, and then Yes.

  • Visual Studio Error while trying to debug a web application

    I am developing a MVC web application.  I had an issue where VS 2013 sp3 ultimate was not launching anymore so I uninstalled and re-installed VS 2013 sp4 ultimate.  I am able to launch my web application using Start Without Debugging.
    However, when I try to debug my application I get a Microsoft Visual Studio pop-up error message that says:
    'Uncaught exception thrown by method called through Reflection. It's not even reaching my application I am unable to even debug where this message is coming from.
    Does anyone have any ideas?
    Help will be very much appreciated.
    Thanks.
    E Rivera

    Hi E Rivera,
    Thanks for your friendly response.
    If you debug this app in other VS machine, how about the result?
    In addition, whether all MVC projects have the same issue? For example, just create a simple default MVC project, debug it, how about the result?
    If all projects have the same issue, I doubt that it is your VS installion issue.
    Maybe you could repair your VS, and then create a new project, debug it again.
    If just one specfic app has this issue, I doubt that we would think about the project, you could add breakpoints, and then debug your app, and maybe you could get more useful information. Of couse, if just the specifc MVC app has this
    issue, I suggest you post this issue to the ASP.net forum.
    http://forums.asp.net
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Visual Studio Online Build Failure - Unable to copy file, access to directory is denied

    Hi,
    I have an ASP.Net Web Site that compiles and builds with no errors on my local machine.
    However when I attempt to build the site using default build definitions/configurations within Visual Studio Online and deploy to an Azure Website / App Service I receive the following errors:
    C:\a\src\House of Canine\HouseOfCanine_1_.metaproj: Unable to copy file "C:\a\src\House of Canine\HouseOfCanine\Bin\AjaxControlToolkit.dll" to "HouseOfCanine\\Bin\AjaxControlToolkit.dll". Access to the path 'HouseOfCanine\\Bin\AjaxControlToolkit.dll' is denied.
    Where, I assume, the directory "C:\a\src\House of Canine..." refers to the Visual Studio Online Directory and the directory "HouseOfCanine\\Bin\Ajax..." refers to the Azure Website directory. 
    This error is repeated for a number of other .dll files in the Bin folder and if I look at the diagnostics tab for the failed build on VSO, I can see that it is where it attempts to copy the binaries to the "drop" where the error fails.
    Any advice much appreciated,
    Ross
    Update
    MSBuild Error Code: MSB3021
    It seems the permissions are not set correctly for the DLLs in the Bin folder however I cannot change the permissions of the files on Visual Studio Online. Any ideas?

    Hi Ross,
    Since this thread is more related to Visual Studio Online, I will move it to the right forum for a better response. Thanks for your understanding.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • Known Issue: Windows Emulators Are Not Supported When Visual Studio Installed in a Virtual Machine (Windows 10 Insider Preview SDK and tools, April 2015 release)

    If you install Visual Studio 2015 with the Windows 10 Mobile emulators in a virtual machine, setup will succeed but the emulators will not be available as valid debug targets.

    The Windows Emulators require a physical machine that runs Windows 8.1 (x64) Professional edition or higher, and a processor that supports Client Hyper-V and Second Level Address Translation (SLAT). The emulators will not run when Visual Studio is installed
    in a Virtual Machine (VM).
    The emulators for Universal Windows app development work best with Windows 10.

  • Debug in Visual Studio 2005 (vs8) ?

    I try debug my application using Visual Studio 2005 but i request this error:
    "unhandle exeption at xxx (msvcr8d.dll)".
    This application in Release mode it's ok.
    This application in VS7 it's ok in DEBUG and RELEASE mode.
    why i can debug in visual studio 2005 (vs8) ?

    Well, I've tried to use it, but look what I got... Any suggestions?
    Compiling...
    occidml.cpp
    C:\InstCli\sdk\include\oratypes.h(98) : error C2062: type 'unsigned int' unexpected
    C:\InstCli\sdk\include\oratypes.h(99) : error C2062: type 'int' unexpected
    C:\InstCli\sdk\include\oratypes.h(104) : error C2146: syntax error : missing ';' before identifier 'ub8'
    C:\InstCli\sdk\include\oratypes.h(104) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    C:\InstCli\sdk\include\oratypes.h(104) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    C:\InstCli\sdk\include\oratypes.h(105) : error C2146: syntax error : missing ';' before identifier 'sb8'
    C:\InstCli\sdk\include\oratypes.h(105) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    C:\InstCli\sdk\include\oratypes.h(105) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    C:\InstCli\sdk\include\occiData.h(503) : warning C4180: qualifier applied to function type has no meaning; ignored
    Build log was saved at "file://d:\Meus documentos\Visual Studio 2005\Projects\occidml\occidml\Debug\BuildLog.htm"
    occidml - 8 error(s), 1 warning(s)

  • Visual Studio 2013 & 2015 sign in

    I am currently using Visual Studio 2013 Ultimate and I have been trying Visual Studio 2015 Ultimate. Due to corporate policies, our organization has decided to block visualstudio.com from the firewall stating the site allows you to upload code. Obviously
    not all of visualstudio.com serves this purpose, but it means that I can't properly leverage the integrated sign in in Visual Studio 2013 and 2015. I got around the requirement in 2013 by entering a license key, but I see no such option in 2015. Ideally however
    I'd be able to use the sign in services, but this would require our company to know what areas of visualstudio.com they can block to stop just code upload to visual studio online. Does Microsoft have a document detailing how visualstudio online code upload
    can be blocked while still maintaining the Visual Studio account and profile features?

    Hi,
    According to the discussions, seems what you want to achieve is blocking the all account visualstudio.com websitr, first, you can use content advisor if you're using IE, you can find more information in the link below:
    http://blogs.msdn.com/b/askie/archive/2008/12/18/content-advisor-in-the-corporate-environment.aspx
    http://windows.microsoft.com/en-hk/windows/using-content-advisor-block-inappropriate-content#1TC=windows-7
    You can also edit the hostfile (C:\WINDOWS\system32\drivers\etc\hosts)to block the website,  for convenience, I'd like to share the following link with you:
    http://www.technet2u.com/2012/09/how-to-block-any-websites-using-host.html
    NOTE This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites.
    Yolanda Zhu
    TechNet Community Support

Maybe you are looking for

  • Playback of iPhoto movies not smooth

    For 5 years I have taken a lot of nice avi movies with my compact Nikon S210 camera.  They always play back very smoothly and are a pleasure to watch directly on my Mac, via a large attached monitor or even to my Apple TV. But this past week my daugh

  • New to Jsp. Jsp and java bean not running

    hi i have created a simple jsp file and using a java bean. but it is showing errors. my file directory structure in tomcat4.1 is: aptechsamples: index.jsp WEB-INF/classes: myPackage: Counter.class i have no web.xml file i dont know how to use it or n

  • Why can't I get the iPod Touch in color with 16 GB?

    Hi! Happy Thanksgiving. So I really want to get the iPod touch 5th Generation for christmas/birthday (they're pretty close to eachother) however the one I want, which is the pink one, is about 70 $ more than the black one. After searching around for

  • CSS arrowpoint cookie load balancing issue

    Hi guys, I need some advice on a load balancing issue. We have connections hitting the CSS via a proxy environment. As a result i see only one source ip address. I want to use arrowpoint cookies for session stickeyness. However when i enable the rule

  • Extraction program for EH&S (EH&S to XI scenario)

    Dear Experts, I am from the XI background and am new to EH&S. I would like to know whether there exists an extraction program to extract substance data from EH&S(ECC) and send it to XI. If yes then what is it? The EH&S team here doesn't know of any k