Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

debug assertion

Status
Not open for further replies.

232323

Programmer
May 14, 2001
10
CA
I have a program compiling but not executing correctly. It gives me the following bug: Debug assertion, file: viewcore.cpp, line 68. When i go try to debug it, it says the following, and if it continues it keeps asking me to locate files eg. crtexe.x that's not on this computer.
please help

Loaded 'C:\WINDOWS\System32\ntdll.dll', no matching symbolic information found.
Loaded symbols for 'C:\WINDOWS\SYSTEM32\MFC42D.DLL'
Loaded symbols for 'C:\WINDOWS\SYSTEM32\MSVCRTD.DLL'
Loaded 'C:\WINDOWS\SYSTEM32\KERNEL32.DLL', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\GDI32.DLL', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\USER32.DLL', no matching symbolic information found.
Loaded symbols for 'C:\WINDOWS\SYSTEM32\MFCO42D.DLL'
Loaded 'C:\WINDOWS\SYSTEM32\MFC42LOC.DLL', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\ADVAPI32.DLL', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\rpcrt4.dll', no matching symbolic information found.
The thread 0x4B4 has exited with code 0 (0x0).
The program 'C:\IMP\Imp3\Debug\Impacts.exe' has exited with code 0 (0x0)
 
I think, at the first you should call CoInitialize(NULL). John Fill
1c.bmp


ivfmd@mail.md
 
C:\IMP\Imp3\Imp3.cpp(17) : error C2501: 'CoInitialize' : missing storage-class or type specifiers
C:\Line Water\IMP\Imp3\Imp3.cpp(17) : error C2373: 'CoInitialize' : redefinition; different type modifiers
c:\program files\microsoft visual studio\vc98\include\objbase.h(501) : see declaration of 'CoInitialize'
Error executing cl.exe.

is the result of that
 
Compiling...
Command line error D2016 : '/ZI' and '/O1' command-line options are incompatible
Error executing cl.exe.

Impacts.exe - 1 error(s), 0 warning(s)

is the error im getting now.
: [
 
--------------------Configuration: Imp3 - Win32 Debug--------------------
Compiling...
Imp3.cpp
C:\IMP\Imp3\Imp3.cpp(20) : error C2501: 'CoInitialize' : missing storage-class or type specifiers
C:\IMP\Imp3\Imp3.cpp(20) : error C2373: 'CoInitialize' : redefinition; different type modifiers
c:\program files\microsoft visual studio\vc98\include\objbase.h(501) : see declaration of 'CoInitialize'
Error executing cl.exe.


back to this now
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top