Advertisement
Guest User

Untitled

a guest
May 16th, 2011
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.94 KB | None | 0 0
  1. #include "highgui.h"
  2. #include <iostream>
  3. #include <string>
  4.  
  5. using namespace std;
  6.  
  7. int main( int argc, char** argv ) {
  8.  
  9.  
  10. /* if(argv[1] == NULL)
  11. {
  12. cout << "There was an error, command line argument doesn't exist." << endl;
  13. int ok;
  14. cout << "Press a button";
  15. cin >> ok;
  16. return -1;
  17. }
  18. cout << argv[1];
  19.  
  20. */
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27. cvNamedWindow( "Ex2", CV_WINDOW_AUTOSIZE );
  28.  
  29.  
  30.  
  31.  
  32. int *ptr = (int*)0X00905a4d;
  33. 0X00905a4d; // ****I WATCHED THIS AS SEEN IN WATCHED 1 ( SEE BELOW ) *****
  34.  
  35.  
  36. CvCapture* capture = cvCreateFileCapture("L:\opencv_projects\avi1\avi1\DBZ.avi" );
  37.  
  38. IplImage* frame = NULL;
  39.  
  40. while(1) {
  41. frame = cvQueryFrame(capture);
  42. if( !frame ) break;
  43. cvShowImage( "Ex2", frame );
  44. char c = cvWaitKey(33);
  45. if( c == 27 ) break;
  46. }
  47. cvReleaseCapture( &capture );
  48. cvDestroyWindow( "Ex2" );
  49. }
  50.  
  51. COMPILE ERRORS:
  52. ON RELEASE:
  53. main.cpp(1): fatal error C1083: Cannot open include file: 'highgui.h': No such file or directory
  54.  
  55. On Debug:
  56. No errors but gives pdb problems:
  57.  
  58. 'avi2.exe': Loaded 'L:\opencv projects\avi2\Debug\avi2.exe', Symbols loaded.
  59. 'avi2.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', Cannot find or open the PDB file
  60. 'avi2.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', Cannot find or open the PDB file
  61. 'avi2.exe': Loaded 'L:\OpenCV2.2\bin\opencv_highgui220.dll', Binary was not built with debug information.
  62. 'avi2.exe': Loaded 'C:\WINDOWS\system32\user32.dll', Cannot find or open the PDB file
  63. 'avi2.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', Cannot find or open the PDB file
  64. 'avi2.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', Cannot find or open the PDB file
  65. 'avi2.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', Cannot find or open the PDB file
  66. 'avi2.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', Cannot find or open the PDB file
  67. 'avi2.exe': Loaded 'C:\WINDOWS\system32\secur32.dll', Cannot find or open the PDB file
  68. 'avi2.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', Cannot find or open the PDB file
  69. 'avi2.exe': Loaded 'L:\OpenCV2.2\bin\opencv_core220.dll', Binary was not built with debug information.
  70. 'avi2.exe': Loaded 'C:\WINDOWS\system32\msvcp100.dll', Symbols loaded.
  71. 'avi2.exe': Loaded 'C:\WINDOWS\system32\msvcr100.dll', Symbols loaded.
  72. 'avi2.exe': Loaded 'C:\WINDOWS\system32\comctl32.dll', Cannot find or open the PDB file
  73. 'avi2.exe': Loaded 'C:\WINDOWS\system32\avifil32.dll', Cannot find or open the PDB file
  74. 'avi2.exe': Loaded 'C:\WINDOWS\system32\winmm.dll', Cannot find or open the PDB file
  75. 'avi2.exe': Loaded 'C:\WINDOWS\system32\msacm32.dll', Cannot find or open the PDB file
  76. 'avi2.exe': Loaded 'C:\WINDOWS\system32\msvfw32.dll', Cannot find or open the PDB file
  77. 'avi2.exe': Loaded 'C:\WINDOWS\system32\shell32.dll', Cannot find or open the PDB file
  78. 'avi2.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', Cannot find or open the PDB file
  79. 'avi2.exe': Loaded 'C:\WINDOWS\system32\avicap32.dll', Cannot find or open the PDB file
  80. 'avi2.exe': Loaded 'C:\WINDOWS\system32\version.dll', Cannot find or open the PDB file
  81. 'avi2.exe': Loaded 'C:\WINDOWS\system32\msvcr100d.dll', Symbols loaded.
  82. '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
  83. 'avi2.exe': Loaded 'C:\WINDOWS\system32\uxtheme.dll', Cannot find or open the PDB file
  84. 'avi2.exe': Loaded 'L:\OpenCV2.2\bin\opencv_ffmpeg220.dll', Binary was not built with debug information.
  85. First-chance exception at 0x00905a4d in avi2.exe: 0xC0000005: Access violation reading location 0x00905a4d.
  86. Unhandled exception at 0x00905a4d in avi2.exe: 0xC0000005: Access violation reading location 0x00905a4d.
  87. First-chance exception at 0x00905a4d in avi2.exe: 0xC0000005: Access violation reading location 0x00905a4d.
  88. Unhandled exception at 0x00905a4d in avi2.exe: 0xC0000005: Access violation reading location 0x00905a4d.
  89. First-chance exception at 0x00905a4d in avi2.exe: 0xC0000005: Access violation reading location 0x00905a4d.
  90. Unhandled exception at 0x00905a4d in avi2.exe: 0xC0000005: Access violation reading location 0x00905a4d.
  91. The program '[2116] avi2.exe: Native' has exited with code 0 (0x0).
  92.  
  93. RUNTIME ERROR: Unhandled exception at 0x00905a4d in avi2.exe: 0xC0000005: Access violation reading location 0x00905a4d.
  94.  
  95. DISSASEMBLY FOR ERROR:
  96.  
  97. 00905A49 ???
  98. 00905A4A ???
  99. 00905A4B ???
  100. 00905A4C ???
  101. -> ON THIS LINE 00905A4D ???
  102. 00905A4E ???
  103. 00905A4F ???
  104. 00905A50 ???
  105. 00905A51 ???
  106.  
  107.  
  108. Call Stack
  109. > 00905a4d()
  110. ntdll.dll!7c910460()
  111. [Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll]
  112. ntdll.dll!7c9145d9()
  113. user32.dll!7e418bd9()
  114. ntdll.dll!7c917d3b()
  115. kernel32.dll!7c801bfa()
  116. opencv_highgui220.dll!100011bd()
  117. opencv_core220.dll!0053006e()
  118.  
  119.  
  120. wATCH1
  121.  
  122. 0X00905a4d 9460301 int THIS IS LINE 0X00905a4d; // ****I WATCHED THIS AS SEEN IN WATCHED 1 ( SEE BELOW ) ***** )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement