Using VS 2017 and SFML 2.5.1 I followed the instructions for installation and used the code given in the tutorial here. I get a window with "SFML Works!" but instead of drawing a green circle I only get a white box like this:
The output after I close the application is as follows:
test
'SFMLTutorial.exe' (Win32): Loaded 'C:\Users\userName\source\repos\SFMLTutorial\Debug\SFMLTutorial.exe'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Users\userName\source\repos\SFMLTutorial\Debug\sfml-system-d-2.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp140d.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\vcruntime140d.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmm.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Users\userName\source\repos\SFMLTutorial\Debug\sfml-window-d-2.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32full.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbased.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmmbase.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp_win.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbase.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\user32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\win32u.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbase.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ucrtbase.dll'
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Users\userName\source\repos\SFMLTutorial\Debug\sfml-graphics-d-2.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\opengl32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\glu32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\opengl32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\opengl32.dll'
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcryptprimitives.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbased.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ucrtbased.dll'
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\imm32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\combase.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Program Files (x86)\Avecto\Privilege Guard Client\PGHook.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptsp.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rsaenh.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcrypt.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\psapi.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Program Files\Cylance\Desktop\CyMemDef.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Program Files\Cylance\Desktop\CyKNPHDOJQHQZ.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Program Files\Cylance\Desktop\CyNTFMIHYBLXA.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\uxtheme.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msctf.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleaut32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Program Files (x86)\Common Files\microsoft shared\ink\tiptsf.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\igdlh64.inf_amd64_8c587880ddec6926\ig9icd32.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Unloaded 'C:\Windows\System32\DriverStore\FileRepository\igdlh64.inf_amd64_8c587880ddec6926\ig9icd32.dll'
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\igdlh64.inf_amd64_8c587880ddec6926\ig9icd32.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shell32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\SHCore.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\windows.storage.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shlwapi.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel.appcore.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\powrprof.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\profapi.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\wtsapi32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dwmapi.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\version.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\version.dll'
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\igdlh64.inf_amd64_8c587880ddec6926\igc32.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Unloaded 'C:\Windows\System32\DriverStore\FileRepository\igdlh64.inf_amd64_8c587880ddec6926\igc32.dll'
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\igdlh64.inf_amd64_8c587880ddec6926\igc32.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dinput8.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\InputHost.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\CoreMessaging.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\CoreUIComponents.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntmarta.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\WinTypes.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\hid.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\setupapi.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\devobj.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\wintrust.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msasn1.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\crypt32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\TextInputFramework.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\clbcatq.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\UIAutomationCore.dll'. Symbols loaded.
onecore\com\combase\inc\comcataloghelpers.hpp(67)\combase.dll!753F0530: (caller: 753F02C0) ReturnHr(1) tid(3efc) 80004002 No such interface supported
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sxs.dll'. Symbols loaded.
mincore\com\oleaut32\dispatch\ups.cpp(2125)\OLEAUT32.dll!75CD239F: (caller: 75CD1F41) ReturnHr(1) tid(3cf4) 8002801D Library not registered.
mincore\com\oleaut32\dispatch\ups.cpp(2125)\OLEAUT32.dll!75CD239F: (caller: 75CD1F41) ReturnHr(2) tid(3cf4) 8002801D Library not registered.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleacc.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\twinapi.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\twinapi.appcore.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rmclient.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dxgi.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\d3d11.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ResourcePolicyClient.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ResourcePolicyClient.dll'
The thread 0x3efc has exited with code -1073741510 (0xc000013a).
The thread 0x1ff8 has exited with code -1073741510 (0xc000013a).
The thread 0x3cf4 has exited with code -1073741510 (0xc000013a).
The thread 0x3c1c has exited with code -1073741510 (0xc000013a).
The thread 0x1e50 has exited with code -1073741510 (0xc000013a).
The thread 0x3c9c has exited with code -1073741510 (0xc000013a).
The thread 0x3e98 has exited with code -1073741510 (0xc000013a).
The thread 0x3f68 has exited with code -1073741510 (0xc000013a).
The thread 0x3ebc has exited with code -1073741510 (0xc000013a).
The thread 0x3ea4 has exited with code -1073741510 (0xc000013a).
The thread 0x3f58 has exited with code -1073741510 (0xc000013a).
The thread 0x360c has exited with code -1073741510 (0xc000013a).
The thread 0x3dd4 has exited with code -1073741510 (0xc000013a).
The thread 0x3b1c has exited with code -1073741510 (0xc000013a).
The thread 0x392c has exited with code -1073741510 (0xc000013a).
The program '[15600] SFMLTutorial.exe' has exited with code -1073741510 (0xc000013a).
The source code (copy / paste) is here:
#include <SFML\Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::Green);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.draw(shape);
window.display();
}
return 0;
}
I should be getting a green circle. Any thoughts on what I might be doing wrong?
Related
I'm following along in the openGL superbible the seventh edition.
In the project I'm looking at is supposed to make a background color that changes over time in the window created. The source files for all the projects and the setup I used are available at https://github.com/openglsuperbible/sb7code. I'm running it on release in Visual Studio 2017.
Below is the output window's output:
'singlepoint.exe' (Win32): Loaded 'C:\Users\Danie\OneDrive\Documents\sb7code-master\sb7code-master\bin\singlepoint.exe'. Module was built without symbols.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\user32.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\win32u.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32full.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp_win.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbase.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\opengl32.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcryptprimitives.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\vcruntime140.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\glu32.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\imm32.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\uxtheme.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\combase.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmm.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmmbase.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmmbase.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\winmmbase.dll'
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmmbase.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\winmmbase.dll'
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dwmapi.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msctf.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleaut32.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\nvhm.inf_amd64_ebea877f10dfbbc7\nvinit.dll'. Cannot find or open the PDB file.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\version.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ig8icd32.dll'. Cannot find or open the PDB file.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shell32.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\SHCore.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\windows.storage.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shlwapi.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel.appcore.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\profapi.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\powrprof.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\fltLib.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\igdusc32.dll'. Cannot find or open the PDB file.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\wtsapi32.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\version.dll'
'singlepoint.exe' (Win32): Unloaded 'C:\Windows\System32\DriverStore\FileRepository\nvhm.inf_amd64_ebea877f10dfbbc7\nvinit.dll'
The thread 0x169c has exited with code 0 (0x0).
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\version.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\version.dll'
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dxgi.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\d3d11.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ResourcePolicyClient.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ResourcePolicyClient.dll'
'singlepoint.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\nvhm.inf_amd64_ebea877f10dfbbc7\nvinit.dll'. Cannot find or open the PDB file.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\version.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\igd10iumd32.dll'. Cannot find or open the PDB file.
'singlepoint.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\igd10iumd32.dll'
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\igd10iumd32.dll'. Cannot find or open the PDB file.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ncrypt.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcrypt.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcrypt.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\bcrypt.dll'
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntasn1.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\version.dll'
'singlepoint.exe' (Win32): Unloaded 'C:\Windows\System32\DriverStore\FileRepository\nvhm.inf_amd64_ebea877f10dfbbc7\nvinit.dll'
The thread 0x3168 has exited with code 0 (0x0).
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\TextInputFramework.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\CoreUIComponents.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\CoreMessaging.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntmarta.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\WinTypes.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\WinTypes.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\WinTypes.dll'
'singlepoint.exe' (Win32): Loaded 'C:\Windows\SysWOW64\WinTypes.dll'. Symbols loaded.
'singlepoint.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\WinTypes.dll'
I know that the symbols are not too necessary to print out in the output because they are primarily for debugging if there is an error within a DLL. However I feel like the origin of the problem is this line:
'singlepoint.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\nvhm.inf_amd64_ebea877f10dfbbc7\nvinit.dll'. Cannot find or open the PDB file.
I may be completely wrong but it's the only thing I can see out of place at the moment.
The source cpp file for this project:
/*
Copyright © 2012-2015 Graham Sellers
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice (including the next
paragraph) shall be included in all copies or substantial portions of the
Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
#include <sb7.h>
class simpleclear_app : public sb7::application
{
void init()
{
static const char title[] = "OpenGL SuperBible - Simple Clear";
sb7::application::init();
memcpy(info.title, title, sizeof(title));
}
virtual void render(double currentTime)
{
static const GLfloat color[] = { (float)sin(currentTime*20)*2.5f+.5f,
(float)cos(currentTime*20)*2.5f+.5f,
0.0f,
1.0f};
glClearBufferfv(GL_COLOR, 0, color);
}
};
DECLARE_MAIN(simpleclear_app)
virtual void render(double currentTime)
{
static const GLfloat color[] = { (float)sin(currentTime*20)*2.5f+.5f,
(float)cos(currentTime*20)*2.5f+.5f,
0.0f,
1.0f};
glClearBufferfv(GL_COLOR, 0, color);
}
You've marked color to be static. This means it'll only receive a value the first time this function is called, and will never be updated again (and because it's marked const, it cannot be altered after initialization without depending on undefined behavior). Remove the static keyword, and this function should behave the way you expect it to.
Also, the "Cannot find or open the PDB file" error is irrelevant and has no bearing on your problem. The only consequence of it is that it's more difficult to step through certain functions in your debugger.
i have problem in c++ opencv3.1.0 in visual studio 2015. when i run my code why my program always give output : ucrtbased.dll cannot find or open the PDB file and opencv_world310d.dll cannot find or open the PDB file. I have to try so many sollution but the program always cant find or open pdb file from uctbased and opencv_world310d only. please if you have any sollution please help me, this is my full output:
'Project2.exe' (Win32): Loaded 'C:\Users\Wu\Documents\Visual Studio 2015\Projects\Project2\x64\Debug\Project2.exe'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\OpenCV310\build\x64\vc14\bin\opencv_world310d.dll'. Cannot find or open the PDB file.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\lpk.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\usp10.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\comdlg32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\winsxs\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.17514_none_a4d6a923711520a9\comctl32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\msvfw32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\winmm.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\avifil32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\msacm32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\avicap32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\version.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\msvcp140d.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140d.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbased.dll'. Cannot find or open the PDB file.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-core-timezone-l1-1-0.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-core-file-l2-1-0.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-core-localization-l1-2-0.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-core-synch-l1-2-0.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-core-processthreads-l1-1-1.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-core-file-l1-2-0.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\concrt140d.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\imm32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\msctf.dll'. Symbols loaded.
***** VIDEOINPUT LIBRARY - 0.1995 - TFW07 *****
Exception thrown at 0x000007FEFD849E5D in Project2.exe: Microsoft C++ exception: cv::Exception at memory location 0x000000000018DD70.
Unhandled exception at 0x000007FEFD849E5D in Project2.exe: Microsoft C++ exception: cv::Exception at memory location 0x000000000018DD70.
The program '[5768] Project2.exe' has exited with code 0 (0x0).
i hope anyone can help me to fix this problem, thanks.
I'm new at programing and I get stuck in my visual studio using C++ and openCV, because when I run some code the program give output : Cannot find or open PDB file and (opencv_world310.dll) in Project2.exe: 0xC0000005: Access violation reading location 0x00000000056AE000.
I don't know what should i do, i try some solution on Internet but cant solve my problem in whole week :(
This is my code:
#include "opencv2/opencv.hpp"
using namespace cv;
using namespace std;
int main(int argc, char* argv[])
{
// Read image
Mat im = imread("cow.jpg");
Mat imout, imout_gray;
// Edge preserving filter with two different flags.
edgePreservingFilter(im, imout, RECURS_FILTER);
imwrite("edge-preserving-recursive-filter.jpg", imout);
edgePreservingFilter(im, imout, NORMCONV_FILTER);
imwrite("edge-preserving-normalized-convolution-filter.jpg", imout);
// Detail enhance filter
detailEnhance(im, imout);
imwrite("detail-enhance.jpg", imout);
// Pencil sketch filter
pencilSketch(im, imout_gray, imout);
imwrite("pencil-sketch.jpg", imout_gray);
// Stylization filter
stylization(im, imout);
imwrite("stylization.jpg", imout);
}
and this is my output:
'Project2.exe' (Win32): Loaded 'C:\Users\Wu\Documents\Visual Studio 2015\Projects\Project2\x64\Debug\Project2.exe'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Program Files (x86)\AVG\Av\avghooka.dll'. Cannot find or open the PDB file.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\opencv 3.1.0\build\x64\vc14\bin\opencv_world310.dll'. Cannot find or open the PDB file.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\lpk.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\usp10.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\comdlg32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\winsxs\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.17514_none_a4d6a923711520a9\comctl32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\msvfw32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\winmm.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\avifil32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\msacm32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\avicap32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\version.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\msvcp140.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-crt-runtime-l1-1-0.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\winsxs\amd64_microsoft-windows-ucrt_31bf3856ad364e35_6.1.7601.18878_none_09aa4b40304c91e1\ucrtbase.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\winsxs\amd64_microsoft-windows-u..rsalcrt-apifwd-win7_31bf3856ad364e35_6.1.7601.18878_none_a9ab111a251a4c49\api-ms-win-core-timezone-l1-1-0.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\winsxs\amd64_microsoft-windows-u..rsalcrt-apifwd-win7_31bf3856ad364e35_6.1.7601.18878_none_a9ab111a251a4c49\api-ms-win-core-file-l2-1-0.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\winsxs\amd64_microsoft-windows-u..rsalcrt-apifwd-win7_31bf3856ad364e35_6.1.7601.18878_none_a9ab111a251a4c49\api-ms-win-core-localization-l1-2-0.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\winsxs\amd64_microsoft-windows-u..rsalcrt-apifwd-win7_31bf3856ad364e35_6.1.7601.18878_none_a9ab111a251a4c49\api-ms-win-core-synch-l1-2-0.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\winsxs\amd64_microsoft-windows-u..rsalcrt-apifwd-win7_31bf3856ad364e35_6.1.7601.18878_none_a9ab111a251a4c49\api-ms-win-core-processthreads-l1-1-1.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\winsxs\amd64_microsoft-windows-u..rsalcrt-apifwd-win7_31bf3856ad364e35_6.1.7601.18878_none_a9ab111a251a4c49\api-ms-win-core-file-l1-2-0.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-crt-string-l1-1-0.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-crt-heap-l1-1-0.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-crt-stdio-l1-1-0.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-crt-convert-l1-1-0.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-crt-locale-l1-1-0.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-crt-math-l1-1-0.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-crt-multibyte-l1-1-0.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-crt-time-l1-1-0.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-crt-filesystem-l1-1-0.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-crt-environment-l1-1-0.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-crt-utility-l1-1-0.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\concrt140.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\msvcp140d.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140d.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbased.dll'. Cannot find or open the PDB file.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\imm32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\msctf.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\OpenCL.DLL'. Cannot find or open the PDB file.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\IntelOpenCL64.dll'. Cannot find or open the PDB file.
'Project2.exe' (Win32): Loaded 'C:\Program Files (x86)\Common Files\Intel\OpenCL\bin\x64\intelocl64.dll'. Cannot find or open the PDB file.
'Project2.exe' (Win32): Loaded 'C:\Program Files (x86)\Common Files\Intel\OpenCL\bin\x64\task_executor64.dll'. Cannot find or open the PDB file.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\opengl32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\glu32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\ddraw.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\dciman32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\setupapi.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\devobj.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\dwmapi.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\ntmarta.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\Wldap32.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Program Files (x86)\Common Files\Intel\OpenCL\bin\x64\cpu_device64.dll'. Cannot find or open the PDB file.
'Project2.exe' (Win32): Loaded 'C:\Program Files (x86)\Common Files\Intel\OpenCL\bin\x64\tbb\tbb.dll'. Cannot find or open the PDB file.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\igdrcl64.dll'. Cannot find or open the PDB file.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\dxgi.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\igdfcl64.dll'. Cannot find or open the PDB file.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\dbghelp.dll'. Symbols loaded.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\igdbcl64.dll'. Cannot find or open the PDB file.
'Project2.exe' (Win32): Loaded 'C:\Windows\System32\igdusc64.dll'. Cannot find or open the PDB file.
Exception thrown at 0x000007FEDB254D61 (opencv_world310.dll) in Project2.exe: 0xC0000005: Access violation reading location 0x00000000056AE000.
The program '[8724] Project2.exe' has exited with code 0 (0x0).
Please can anyone help me to solve this one? :(
Thanks^^
PDB Files are used for debugging. You can load them by doing :
>Debug/Options/Symboles and now check "Microsoft Symbols Servers"
Try to open your image "cow.jpg" first and show it with:
imshow("myWindows",im);
to see if your image is correctly loaded and comments other lines.
Remember to include opencv dependencies in :
Project Properties/Linker/Input/Supplementary Dependencies
Add the paths (depends to your installation)
C:\OpenCV_31\opencv\build\x64\vc14\lib\opencv_world310.lib
C:\OpenCV_31\opencv\build\x64\vc14\lib\opencv_world310d.lib
{**#include <opencv\cv.h>
#include <opencv\highgui.h>sing namespace cv;
int main()
{
// Create matrix to store.
Mat image;
// initializing capture
VideoCapture cap;
cap.open(0);
//create window to show image
namedWindow("window",1);
// copy webcam stream to image
cap>>image;
//print image to screen
imshow("window",image);
// delay 33ms
waitKey(33);
}**
and the errors are
**'And, its errors are ''OpenCV.exe' (Win32): Loaded 'C:\Users\Uzzal
Das\Documents\Visual Studio 2012\Projects\OpenCV\Debug\OpenCV.exe'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Opencv243\build\x86\vc10\bin\opencv_core243d.dll'. Cannot find
or open the PDB file. 'OpenCV.exe' (Win32): Loaded
'C:\Opencv243\build\x86\vc10\bin\opencv_highgui243d.dll'. Cannot
find or open the PDB file. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\msvcp110d.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\msvcr110d.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Users\Uzzal Das\Documents\Visual
Studio 2012\Projects\OpenCV\Debug\msvcp100d.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Users\Uzzal Das\Documents\Visual
Studio 2012\Projects\OpenCV\Debug\msvcr100d.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\user32.dll'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\gdi32.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleaut32.dll'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\advapi32.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\comctl32.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\avifil32.dll'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\msvfw32.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\avicap32.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\combase.dll'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\msvcrt.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\winmm.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\msacm32.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shell32.dll'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\version.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmmbase.dll'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\shlwapi.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\devobj.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\bcryptprimitives.dll'. Symbols
loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\imm32.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\msctf.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded
'C:\PROGRA~2\SupTab\SearchProtect32.dll'. Cannot find or open the
PDB file. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\kernel.appcore.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\uxtheme.dll'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\clbcatq.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\devenum.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\setupapi.dll'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\ntmarta.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\wintrust.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\crypt32.dll'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\msasn1.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\msdmo.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\qcap.dll'. Symbols
loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\quartz.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\dwmapi.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ksproxy.ax'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\ksuser.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\d3d9.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\vidcap.ax'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\Kswdmcap.ax'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\mfc42.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\odbc32.dll'.
Symbols loaded. The thread 0x17a0 has exited with code 0 (0x0).
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\qedit.dll'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\comdlg32.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded
'C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.9600.17056_none_dadc5d1c5bc8ab48\GdiPlus.dll'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\SHCore.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\ddraw.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dciman32.dll'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\igdumdim32.dll'. Cannot find or open the PDB
file. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\igdusc32.dll'. Cannot find or open the PDB
file. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\d3dim700.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Unloaded 'C:\Windows\SysWOW64\igdusc32.dll' 'OpenCV.exe'
(Win32): Unloaded 'C:\Windows\SysWOW64\igdumdim32.dll' 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\igdumdim32.dll'. Cannot find or
open the PDB file. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\igdusc32.dll'. Cannot find or open the PDB
file. 'OpenCV.exe' (Win32): Unloaded
'C:\Windows\SysWOW64\igdusc32.dll' 'OpenCV.exe' (Win32): Unloaded
'C:\Windows\SysWOW64\igdumdim32.dll' 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\msyuv.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Unloaded 'C:\PROGRA~2\SupTab\SearchProtect32.dll' The
thread 0x15ec has exited with code 0 (0x0). The thread 0x4c0 has
exited with code 0 (0x0). 'OpenCV.exe' (Win32): Unloaded
'C:\Windows\SysWOW64\msyuv.dll' The thread 0x14d4 has exited with
code 0 (0x0). The thread 0x9f8 has exited with code 0 (0x0). The
thread 0x15f4 has exited with code 0 (0x0). The program '[6988]
OpenCV.exe' has exited with code 0 (0x0).'
----------
'**
The can not load pbd files problem for opencv is caused by using dlls compiled with a different compiler than you are using. In this case you are using Visual Studio 2010 dlls in your Visual Studio 2012 application. In general is not safe to mix compilers by using dlls compiled with a different version of Visual Studio or mixing debug and release in the same application. The main reason is when you do this you will have more than 1 independent heap. You can not safely allocate memory in 1 heap and free it in a second heap. This will cause heap corruption which can cause a random looking crash because the corruption may not crash on the first allocation / deallocation after the heap becomes corrupt.
To fix this make sure you setup your project to use the correct opencv dlls for your compiler. For Visual Studio 2012 the correct dlls will be in the vc11 folder.
I am working on showing sample.mp4 on openframeworks of 0.8.0 / Visual Studio 2012 v110 toolsets / Windows 7.
void testApp::setup(){
myPlayer.loadMovie("sample.mp4");
myPlayer.play();
}
I put sample.mp4 in the src directory, same as where tesApp.cpp is located. This goes through the build process; however, it crashes with the following output:
'emptyExample_debug.exe' (Win32): Loaded 'C:\Users\admin\Documents\of_v0.8.0_vs_release\apps\myApps - コピー\emptyExample\bin\emptyExample_debug.exe'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp110d.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr110d.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmm.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\user32.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\lpk.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\usp10.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msimg32.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\opengl32.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\glu32.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ddraw.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dciman32.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\setupapi.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleaut32.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\devobj.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dwmapi.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Users\admin\Documents\of_v0.8.0_vs_release\apps\myApps - コピー\emptyExample\bin\FreeType-6.dll'. Module was built without symbols.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Users\admin\Documents\of_v0.8.0_vs_release\apps\myApps - コピー\emptyExample\bin\Zlib.dll'. Module was built without symbols.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\crtdll.dll'. Module was built without symbols.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Users\admin\Documents\of_v0.8.0_vs_release\apps\myApps - コピー\emptyExample\bin\FreeImage.dll'. Module was built without symbols.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ws2_32.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\nsi.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\version.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shell32.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shlwapi.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Users\admin\Documents\of_v0.8.0_vs_release\apps\myApps - コピー\emptyExample\bin\fmodex.dll'. Module was built without symbols.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msacm32.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\wsock32.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\crypt32.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msasn1.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\IPHLPAPI.DLL'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winnsi.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\imm32.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msctf.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\nvinit.dll'. Cannot find or open the PDB file.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\uxtheme.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\apphelp.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\IMJP14.IME'. Cannot find or open the PDB file.
'emptyExample_debug.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\IMJP14.IME'
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\IMJP14.IME'. Cannot find or open the PDB file.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb\msvcr90.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb\msvcp90.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\IMJP14K.DLL'. Cannot find or open the PDB file.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ig7icd32.dll'. Cannot find or open the PDB file.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ole32.dll'
'emptyExample_debug.exe' (Win32): Loaded 'C:\PROGRA~2\COMMON~1\MICROS~1\IME14\IMEJP\IMJPAPI.DLL'. Cannot find or open the PDB file.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Program Files (x86)\Common Files\microsoft shared\IME14\SHARED\IMJKAPI.DLL'. Cannot find or open the PDB file.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Program Files (x86)\Common Files\microsoft shared\IME14\IMEJP\IMJPPRED.DLL'. Cannot find or open the PDB file.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ole32.dll'
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\clbcatq.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Program Files (x86)\Common Files\microsoft shared\IME14\IMEJP\IMJPTIP.DLL'. Cannot find or open the PDB file.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleacc.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\comctl32.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\PROGRA~2\COMMON~1\MICROS~1\IME14\SHARED\IMETIP.DLL'. Cannot find or open the PDB file.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msctf.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\msctf.dll'
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msctf.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\msctf.dll'
'emptyExample_debug.exe' (Win32): Loaded 'C:\PROGRA~2\COMMON~1\MICROS~1\IME14\SHARED\IMECFM.DLL'. Cannot find or open the PDB file.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptsp.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rsaenh.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Windows\SysWOW64\RpcRtRemote.dll'. Symbols loaded.
'emptyExample_debug.exe' (Win32): Loaded 'C:\Program Files (x86)\Common Files\microsoft shared\IME14\SHARED\IMECMPS.DLL'. Cannot find or open the PDB file.
The thread 0x3b0 has exited with code 0 (0x0).
The thread 0x1fe0 has exited with code 0 (0x0).
The thread 0x13b4 has exited with code 0 (0x0).
The thread 0x2780 has exited with code 0 (0x0).
The thread 0xc70 has exited with code 0 (0x0).
The thread 0x263c has exited with code 0 (0x0).
The program '[5724] emptyExample_debug.exe' has exited with code 0 (0x0).
This is my question: did I put the sample.mp4 file in the right place? If so, how can I make this loadMovie function work?
ofVideoPlayer::loadMovie (like most loading functions in openFrameworks) looks in the "bin/data" directory by default. Place the movie file there and and your code should work as written.