I am at an absolute loss, but my project has stopped working after my avg antivirus said it was scanning the debug.exe. It found no threat and popped up a notification that it was found to be safe but then the application window closed and I have not been able to get it to run since, it’s rather upsetting. I had been running it several times on the same computer without issue, just with the windows debugger in visual studio 2019 but it was working perfectly for my requirements.
I guess I’m just wondering if anyone else has gone through a similar situation and found a cause and solution? I tried adding the exe as an exception and even switched off the various scans one by one to see if that would spark it back into life but I have no idea what’s happened.
Hmm maybe try building in Release instead of Debug ( as it will be a lot faster too ).
It should have a new signature in Release and hopefully it lets it build?
Also I think generally for Windows 10 / 11 people typically recommend just using the Microsoft built in AV software.
Hi, thanks very much for getting back to me and apologies for the delay in getting back to you. I tried to build in release mode and got this long list of errors which is all way out of my skill/confidence levels -
1>------ Build started: Project: Timeography, Configuration: Release Win32 ------
1>ofxBaseGui.obj : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main.obj
1>ofxBaseGui.obj : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in main.obj
1>ofxButton.obj : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main.obj
1>ofxButton.obj : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in main.obj
1>ofxColorPicker.obj : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main.obj
1>ofxColorPicker.obj : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in main.obj
1>ofxGuiGroup.obj : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main.obj
1>ofxGuiGroup.obj : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in main.obj
1>ofxInputField.obj : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main.obj
1>ofxInputField.obj : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in main.obj
1>ofxLabel.obj : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main.obj
1>ofxLabel.obj : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in main.obj
1>ofxPanel.obj : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main.obj
1>ofxPanel.obj : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in main.obj
1>ofxSlider.obj : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main.obj
1>ofxSlider.obj : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in main.obj
1>ofxSliderGroup.obj : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main.obj
1>ofxSliderGroup.obj : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in main.obj
1>ofxToggle.obj : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main.obj
1>ofxToggle.obj : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in main.obj
1>ofxCvColorImage.obj : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main.obj
1>ofxCvColorImage.obj : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in main.obj
1>ofxCvContourFinder.obj : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main.obj
1>ofxCvContourFinder.obj : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in main.obj
1>ofxCvFloatImage.obj : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main.obj
1>ofxCvFloatImage.obj : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in main.obj
1>ofxCvGrayscaleImage.obj : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main.obj
1>ofxCvGrayscaleImage.obj : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in main.obj
1>ofxCvHaarFinder.obj : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main.obj
1>ofxCvHaarFinder.obj : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in main.obj
1>ofxCvImage.obj : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main.obj
1>ofxCvImage.obj : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in main.obj
1>ofxCvShortImage.obj : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main.obj
1>ofxCvShortImage.obj : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in main.obj
1> Creating library bin\Timeography.lib and object bin\Timeography.exp
1>LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
1>ofxCvShortImage.obj : error LNK2001: unresolved external symbol __imp___invalid_parameter
1>ofxCvFloatImage.obj : error LNK2001: unresolved external symbol __imp___invalid_parameter
1>ofxCvGrayscaleImage.obj : error LNK2001: unresolved external symbol __imp___invalid_parameter
1>ofxCvHaarFinder.obj : error LNK2001: unresolved external symbol __imp___invalid_parameter
1>ofxCvImage.obj : error LNK2001: unresolved external symbol __imp___invalid_parameter
1>ofxSliderGroup.obj : error LNK2001: unresolved external symbol __imp___invalid_parameter
1>ofxToggle.obj : error LNK2001: unresolved external symbol __imp___invalid_parameter
1>ofxCvColorImage.obj : error LNK2001: unresolved external symbol __imp___invalid_parameter
1>ofxCvContourFinder.obj : error LNK2001: unresolved external symbol __imp___invalid_parameter
1>ofxInputField.obj : error LNK2001: unresolved external symbol __imp___invalid_parameter
1>ofxLabel.obj : error LNK2001: unresolved external symbol __imp___invalid_parameter
1>ofxPanel.obj : error LNK2001: unresolved external symbol __imp___invalid_parameter
1>ofxSlider.obj : error LNK2001: unresolved external symbol __imp___invalid_parameter
1>ofxBaseGui.obj : error LNK2001: unresolved external symbol __imp___invalid_parameter
1>ofxButton.obj : error LNK2001: unresolved external symbol __imp___invalid_parameter
1>ofxColorPicker.obj : error LNK2001: unresolved external symbol __imp___invalid_parameter
1>ofxGuiGroup.obj : error LNK2001: unresolved external symbol __imp___invalid_parameter
1>ofxCvShortImage.obj : error LNK2001: unresolved external symbol __imp___calloc_dbg
1>ofxCvFloatImage.obj : error LNK2001: unresolved external symbol __imp___calloc_dbg
1>ofxCvGrayscaleImage.obj : error LNK2001: unresolved external symbol __imp___calloc_dbg
1>ofxCvHaarFinder.obj : error LNK2001: unresolved external symbol __imp___calloc_dbg
1>ofxCvImage.obj : error LNK2001: unresolved external symbol __imp___calloc_dbg
1>ofxSliderGroup.obj : error LNK2001: unresolved external symbol __imp___calloc_dbg
1>ofxToggle.obj : error LNK2001: unresolved external symbol __imp___calloc_dbg
1>ofxCvColorImage.obj : error LNK2001: unresolved external symbol __imp___calloc_dbg
1>ofxCvContourFinder.obj : error LNK2001: unresolved external symbol __imp___calloc_dbg
1>ofxInputField.obj : error LNK2001: unresolved external symbol __imp___calloc_dbg
1>ofxLabel.obj : error LNK2001: unresolved external symbol __imp___calloc_dbg
1>ofxPanel.obj : error LNK2001: unresolved external symbol __imp___calloc_dbg
1>ofxSlider.obj : error LNK2001: unresolved external symbol __imp___calloc_dbg
1>ofxBaseGui.obj : error LNK2001: unresolved external symbol __imp___calloc_dbg
1>ofxButton.obj : error LNK2001: unresolved external symbol __imp___calloc_dbg
1>ofxColorPicker.obj : error LNK2001: unresolved external symbol __imp___calloc_dbg
1>ofxGuiGroup.obj : error LNK2001: unresolved external symbol __imp___calloc_dbg
1>ofxCvShortImage.obj : error LNK2001: unresolved external symbol __imp___CrtDbgReport
1>ofxCvFloatImage.obj : error LNK2001: unresolved external symbol __imp___CrtDbgReport
1>ofxCvGrayscaleImage.obj : error LNK2001: unresolved external symbol __imp___CrtDbgReport
1>ofxCvHaarFinder.obj : error LNK2001: unresolved external symbol __imp___CrtDbgReport
1>ofxCvImage.obj : error LNK2001: unresolved external symbol __imp___CrtDbgReport
1>ofxSliderGroup.obj : error LNK2001: unresolved external symbol __imp___CrtDbgReport
1>ofxToggle.obj : error LNK2001: unresolved external symbol __imp___CrtDbgReport
1>ofxCvColorImage.obj : error LNK2001: unresolved external symbol __imp___CrtDbgReport
1>ofxCvContourFinder.obj : error LNK2001: unresolved external symbol __imp___CrtDbgReport
1>ofxInputField.obj : error LNK2001: unresolved external symbol __imp___CrtDbgReport
1>ofxLabel.obj : error LNK2001: unresolved external symbol __imp___CrtDbgReport
1>ofxPanel.obj : error LNK2001: unresolved external symbol __imp___CrtDbgReport
1>ofxSlider.obj : error LNK2001: unresolved external symbol __imp___CrtDbgReport
1>ofxBaseGui.obj : error LNK2001: unresolved external symbol __imp___CrtDbgReport
1>ofxButton.obj : error LNK2001: unresolved external symbol __imp___CrtDbgReport
1>ofxColorPicker.obj : error LNK2001: unresolved external symbol __imp___CrtDbgReport
1>ofxGuiGroup.obj : error LNK2001: unresolved external symbol __imp___CrtDbgReport
1>ofxCvHaarFinder.obj : error LNK2001: unresolved external symbol "public: void __thiscall cv::CascadeClassifier::detectMultiScale(class cv::debug_build_guard::_InputArray const &,class std::vector<class cv::Rect_<int>,class std::allocator<class cv::Rect_<int> > > &,double,int,int,class cv::Size_<int>,class cv::Size_<int>)" (?detectMultiScale@CascadeClassifier@cv@@QAEXABV_InputArray@debug_build_guard@2@AAV?$vector@V?$Rect_@H@cv@@V?$allocator@V?$Rect_@H@cv@@@std@@@std@@NHHV?$Size_@H@2@2@Z)
1>ofxCvImage.obj : error LNK2001: unresolved external symbol "class cv::debug_build_guard::_InputOutputArray const & __cdecl cv::noArray(void)" (?noArray@cv@@YAABV_InputOutputArray@debug_build_guard@1@XZ)
1>ofxCvImage.obj : error LNK2001: unresolved external symbol "void __cdecl cv::undistort(class cv::debug_build_guard::_InputArray const &,class cv::debug_build_guard::_OutputArray const &,class cv::debug_build_guard::_InputArray const &,class cv::debug_build_guard::_InputArray const &,class cv::debug_build_guard::_InputArray const &)" (?undistort@cv@@YAXABV_InputArray@debug_build_guard@1@ABV_OutputArray@31@000@Z)
1>bin\Timeography.exe : fatal error LNK1120: 6 unresolved externals
1>Done building project "Timeography.vcxproj" -- FAILED.
I’m sure I’m just doing something stupid but it was all working the other day, just running with the Windows Debugger in VS, and I hadn’t made any changes before trying to run it when it all stopped so I am completely baffled and feeling defeated. When I go back to building in debug mode it says it has built successfully but still doesn’t run.
I’m interested in what you say about the WIndows Defender being acceptable protection as I have only recently moved back to Windows after a few decades of running Linux distros.
Thanks again, that did allow it to build in release mode but it still doesn’t run, when I open the exe directly or via VS I just get the little black window that normally opens just before the application opens but now no application follows it. When I run it from within VS I get the following messages in the Diagnostics Hub output -
Symbols failed to load for ucrtbase.dll. Cannot find or open the PDB file.
Symbols failed to load for user32.dll. Cannot find or open the PDB file.
Symbols failed to load for dinput8.dll. Cannot find or open the PDB file.
Symbols failed to load for ntdll.dll. Cannot find or open the PDB file.
Symbols failed to load for gdi32full.dll. Cannot find or open the PDB file.
Symbols failed to load for ntdll.dll. Cannot find or open the PDB file.
Symbols failed to load for ntdll.dll. Cannot find or open the PDB file.
Symbols failed to load for FreeImage.dll. Cannot find or open the PDB file.
Symbols failed to load for KernelBase.dll. Cannot find or open the PDB file.
Symbols failed to load for Timeography.exe.
I can confirm that the dll is in the bin folder and that the project is in myApps, I’ve done a few projects over the past few years but have come back to this one during the past few weeks as I was hoping to put together a possible exhibition of the images that it outputs. This is what is so bizarre, I’d run it several times to tinker with the best settings before heading out at the weekend to shoot some test input videos; then I go to use it on Monday, avg suddenly seems to scan it as a threat, says it’s found to be safe, and then it’s not run since
Probably a silly question but will updating my version to 12 cause any problems with the projects that I’ve developed already?
Thanks again for your help, I’ll hopefully get to have another look over the weekend (probably get rid of avg tbh!)