Error message from VS2022: appmodul.cpp not found - c++

While trying to debug a C++ windows application in Visual Studio 2022, I get the message:
You need to find appmodul.cpp to view the source for the current call stack frame
I really have no idea what the message mean, and the added comments do not help.
Any help would be appreciated.
Thanks
Al

Related

How do I fix a 'cannot open source file' error on MS Visual Studio 2022

Forgive me if I leave out important information, I'm a brand new programmer, and this is my first time using Stack Overflow.
I just downloaded MS Visual Studio, and was testing it by making a basic Console App that outputs "Hello world", but when I tried to run the program, it gave me a message that said "There were build errors. Would you like to continue and run the last successful build?" Then, when I pressed yes I got 478 errors, nearly all of which were "E1696 cannot open source file "filename"", or, "E0282 global source has no "filename"." Is there anyone who has encountered a similar problem, and if so, do you know what is causing it / how to fix it?

Why doesn't the c++ file run in visual studio

So I tried making a basic game on the console using screen buffers, I was able to create it and make a square move in the canvas, but for my next project I looked up a website with the ASCII characters and pasted a couple into a comment at the end of the c++ file, when I ran the file visual studio prompted:
I clicked yes and it didn't run anymore.
Also I recently have installed an extension for visual studio (before it didn't run, the extension works fine but I don't know if the extension may have caused this as I didn't tried running it with the extension downloaded and applied), when I open visual studio and open a file it says:
The last record in the ActivityLog xml file, has a type of error and it's description is:
Microsoft.VisualStudio.Composition.CompositionFailedException: Expected 1 export(s) with contract name "Microsoft.VisualStudio.CppSvc.Internal.CodeAnalysis.ICodeAnalysisService" but found 0 after applying applicable constraints.
at Microsoft.VisualStudio.Composition.ExportProvider.GetExports(ImportDefinition importDefinition)
at Microsoft.VisualStudio.Composition.ExportProvider.GetExports[T,TMetadataView](String contractName, ImportCardinality cardinality)
at
Microsoft.VisualStudio.Composition.ExportProvider.GetExport[T,TMetadataView](String contractName)
at
Microsoft.VisualStudio.Composition.ExportProvider.GetExport[T](String contractName)
at
Microsoft.VisualStudio.Composition.ExportProvider.GetExportT
at
Microsoft.VisualStudio.Composition.ExportProvider.GetExportedValueT
at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetServiceT
at Microsoft.VisualStudio.VC.ManagedInterop.<>c.<Initialize>b__52_15()
at
System.Lazy`1.CreateValue()
at
System.Lazy`1.LazyInitValue()
at
System.Lazy`1.get_Value()
at
Microsoft.VisualStudio.VC.CodeAnalysis.ResultTaggerProvider.CreateTagger[T](ITextBuffer buffer)
at
Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.GatherTaggers(ITextBuffer textBuffer)
--- End of stack trace from previous location where exception was thrown ---
at
Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
I have Visual Studio 2017
So why does running the file (with the local windows debugger button) say that there were build errors? And how can I fix it?
When it prompts the build error, and I click no it usually shows the errors but in this case it doesn't, yes will just run the last "successful" build (although I haven't changed the file since I have finished it before this error message started popping up)
Also there is no error in my code as I was able to run it before the build error kept appearing and I haven't touched the file since(only now to show the problems are)
Thanks for your time! if anything was unclear because of my English, comment and I'll try to clarify it
I fixed the error by deleting ComponentModelChache folder located at:
C:\Users\%userName%\AppData\Local\Microsoft\VisualStudio\15.0
15.0 is the version of your visual studio so it varies depending on the version you're using, %userName% is a replacement for the user you're logged in as

error MSB4044: The "CheckRuntimeLibrary" task was not given a value for the required parameter "RuntimeLibrary"

I tried to use a C++ code for converting mnist dataset into lmdb format. I installed all the needed packages, but when I ran the code I got this error:
Error MSB4044: The "CheckRuntimeLibrary" task was not given a value for the required parameter "RuntimeLibrary". c:\Users\mohamed-witti-adou\documents\visual studio 2013\Projects\Project2\packages\gflags.2.1.1.2\build\native\gflags.targets
I am new to C++ and VS coding, I would like some help to overcome this error. Thanks in advance.
As noone else has answered and I found this question when Googling my error text: The problem in my case was that I was building a completely empty Visual Studio project that I had copied and modified for a new project. When I added a source file to the project the error went away.

assert at occcount.cpp 926 line in visual studio 2008

I have source code based on MFC in visual studio 2008 and Windows 10. When I build as Win 32 debug mode , occured the accert fail at runtime
show assertion message
So I found the solutions to resolve this problem at below link.
https://support.microsoft.com/en-us/help/949107/debug-assertion-failed-in-occont.cpp-line-926
But it is not helpful because I don't have the extra dll, or ocx.
I could find the assertion point. please see the below code.
if(m_objSearchDlg.Create(IDD_SEARCH_DLG, (CWnd*)this) == FALSE)
return bResult;
m_objSearchDlg.ShowWindow(SW_SHOW);
After m_objSearchDlg was created, occured the assert when calling the "ShowWindow" method.
I thought that m_objSearchDlg instance is not normal.
Please help me.
Thanks

Windows: Unable to find SAPI error on google

I am using SAPI to make a voice speak text.
The error code returned is
-2147024888
The method "Speak" for 'ISpeechVoice' failed
However I was unable to find this error code on Google.
I am not sure why.
Does anybody have any ideas? I expected Microsoft to list all possible error codes for SAPI.
On the page http://msdn.microsoft.com/en-us/library/ms717306%28v=vs.85%29.aspx this error code is not there.
Thank you for any help!
The SAPI error code listings are for the error codes specific to SAPI. Other errors could be returned.
-2147024888 is equivalent to 0x80070008, which is a Win32 HRESULT (E_OUTOFMEMORY); the call is failing because something (either inside the TTS engine or in SAPI) is not able to allocate enough memory.