#include "highgui.h"
#include <iostream>
#include <string>
using namespace std;
int main( int argc, char** argv ) {
/* if(argv[1] == NULL)
{
cout << "There was an error, command line argument doesn't exist." << endl;
int ok;
cout << "Press a button";
cin >> ok;
return -1;
}
cout << argv[1];
*/
cvNamedWindow( "Ex2", CV_WINDOW_AUTOSIZE );
int *ptr = (int*)0X00905a4d;
0X00905a4d; // ****I WATCHED THIS AS SEEN IN WATCHED 1 ( SEE BELOW ) *****
CvCapture* capture = cvCreateFileCapture("L:\opencv_projects\avi1\avi1\DBZ.avi" );
IplImage* frame = NULL;
while(1) {
frame = cvQueryFrame(capture);
if( !frame ) break;
cvShowImage( "Ex2", frame );
char c = cvWaitKey(33);
if( c == 27 ) break;
}
cvReleaseCapture( &capture );
cvDestroyWindow( "Ex2" );
}
COMPILE ERRORS:
ON RELEASE:
main.cpp(1): fatal error C1083: Cannot open include file: 'highgui.h': No such file or directory
On Debug:
No errors but gives pdb problems:
'avi2.exe': Loaded 'L:\opencv projects\avi2\Debug\avi2.exe', Symbols loaded.
'avi2.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', Cannot find or open the PDB file
'avi2.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', Cannot find or open the PDB file
'avi2.exe': Loaded 'L:\OpenCV2.2\bin\opencv_highgui220.dll', Binary was not built with debug information.
'avi2.exe': Loaded 'C:\WINDOWS\system32\user32.dll', Cannot find or open the PDB file
'avi2.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', Cannot find or open the PDB file
'avi2.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', Cannot find or open the PDB file
'avi2.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', Cannot find or open the PDB file
'avi2.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', Cannot find or open the PDB file
'avi2.exe': Loaded 'C:\WINDOWS\system32\secur32.dll', Cannot find or open the PDB file
'avi2.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', Cannot find or open the PDB file
'avi2.exe': Loaded 'L:\OpenCV2.2\bin\opencv_core220.dll', Binary was not built with debug information.
'avi2.exe': Loaded 'C:\WINDOWS\system32\msvcp100.dll', Symbols loaded.
'avi2.exe': Loaded 'C:\WINDOWS\system32\msvcr100.dll', Symbols loaded.
'avi2.exe': Loaded 'C:\WINDOWS\system32\comctl32.dll', Cannot find or open the PDB file
'avi2.exe': Loaded 'C:\WINDOWS\system32\avifil32.dll', Cannot find or open the PDB file
'avi2.exe': Loaded 'C:\WINDOWS\system32\winmm.dll', Cannot find or open the PDB file
'avi2.exe': Loaded 'C:\WINDOWS\system32\msacm32.dll', Cannot find or open the PDB file
'avi2.exe': Loaded 'C:\WINDOWS\system32\msvfw32.dll', Cannot find or open the PDB file
'avi2.exe': Loaded 'C:\WINDOWS\system32\shell32.dll', Cannot find or open the PDB file
'avi2.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', Cannot find or open the PDB file
'avi2.exe': Loaded 'C:\WINDOWS\system32\avicap32.dll', Cannot find or open the PDB file
'avi2.exe': Loaded 'C:\WINDOWS\system32\version.dll', Cannot find or open the PDB file
'avi2.exe': Loaded 'C:\WINDOWS\system32\msvcr100d.dll', Symbols loaded.
'avi2.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.6028_x-ww_61e65202\comctl32.dll', Cannot find or open the PDB file
'avi2.exe': Loaded 'C:\WINDOWS\system32\uxtheme.dll', Cannot find or open the PDB file
'avi2.exe': Loaded 'L:\OpenCV2.2\bin\opencv_ffmpeg220.dll', Binary was not built with debug information.
First-chance exception at 0x00905a4d in avi2.exe: 0xC0000005: Access violation reading location 0x00905a4d.
Unhandled exception at 0x00905a4d in avi2.exe: 0xC0000005: Access violation reading location 0x00905a4d.
First-chance exception at 0x00905a4d in avi2.exe: 0xC0000005: Access violation reading location 0x00905a4d.
Unhandled exception at 0x00905a4d in avi2.exe: 0xC0000005: Access violation reading location 0x00905a4d.
First-chance exception at 0x00905a4d in avi2.exe: 0xC0000005: Access violation reading location 0x00905a4d.
Unhandled exception at 0x00905a4d in avi2.exe: 0xC0000005: Access violation reading location 0x00905a4d.
The program '[2116] avi2.exe: Native' has exited with code 0 (0x0).
RUNTIME ERROR: Unhandled exception at 0x00905a4d in avi2.exe: 0xC0000005: Access violation reading location 0x00905a4d.
DISSASEMBLY FOR ERROR:
00905A49 ???
00905A4A ???
00905A4B ???
00905A4C ???
-> ON THIS LINE 00905A4D ???
00905A4E ???
00905A4F ???
00905A50 ???
00905A51 ???
Call Stack
> 00905a4d()
ntdll.dll!7c910460()
[Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll]
ntdll.dll!7c9145d9()
user32.dll!7e418bd9()
ntdll.dll!7c917d3b()
kernel32.dll!7c801bfa()
opencv_highgui220.dll!100011bd()
opencv_core220.dll!0053006e()
wATCH1
0X00905a4d 9460301 int THIS IS LINE 0X00905a4d; // ****I WATCHED THIS AS SEEN IN WATCHED 1 ( SEE BELOW ) ***** )