Advertisement

09.09.2008 at 07:10AM PDT, ID: 23715529
[x]
Attachment Details

Error "Debug Assertion Failed!"

[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.8
Tags:

Microsoft, Visual Studio 2005, 8.0.50727.762 (SP.050727-7600), for Windows xp Version 2002 SP2, Debug Assertion Failed! Expression: invalid null pointer.

Hello expert!

I am working for a customer of us, where I am responsible for a server written in C++. The company uses Microsoft Visual Studio 2005. While going through the code to see better how it works with the debugger, I came up with an error message that reads:

Microsoft Visual C++ Debug Library
_________________________________________
/!\ Debug Assertion Failed!
   Program:...
   File: .\xstring
   Line: 2061

   Expression: invalid null pointer.

   For information on how your program can cause an assertion
   failure, see the Visual C++ documentation on asserts.

  (Press Retry to debug the application)

  [ Cancel ] [ Retry ] [ Ignore ]

I read on the Internet that there can be several reasons, like
* Problems with ActiveX or OLE
* Moving binary code from one Microsoft IDE to the MSVS 2005
* The parameter with the file path & file name had not the extension (.txt missing).

To my knowledge, none is the case here. We do not use OLE, have migrated anything, or pass a file URI that has an extension.

So far my question. What information do you need to analyse my problem?

The exact point where I get the error is the line
   m_pEnv = Environment::createEnvironment();

in the code snippet attached, where the variable was declared as

oracle::occi::Environment *m_pEnv;

Before getting the error message, one more message occurs. But this is a message we always get. The reason may be a problem with the ORACLE installation, my project manager told me. This first error message reads:

Microsoft Visual Studio
__________________________________________________________
/!\  Windows has triggered a breakpoint in indizierer.exe
    This may be due to a corruption of the heap, and indicates a bug in
    indizierer.exe or any of the DLLs it has loaded.

   The output window may have more diagnostic information

                                             [ Break ] [ Continue ] [ Ignore ]
__________________________________________________________


(The output window is empty)
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
DBEnvironment::DBEnvironment(void)
{
	TRACE_LOG(H_TRACE_TRACE2, __FILE__, __LINE__,"Constructor -------- START Enviroment --------\n");
//	m_pEnv = Environment::createEnvironment(Environment::OBJECT);
	try
	{
#ifdef WIN32
		SetEnvironmentVariable("NLS_DATE_FORMAT","YYYY-MM-DD");
		SetEnvironmentVariable("NLS_TIMESTAMP_FORMAT", "YYYY-MM-DD HH24:MI:SS");
 
		m_pEnv = Environment::createEnvironment();
#else
[...]
Attachments:
 
The windows error message
The windows error message
 
Answered By: Gideon7
Expert Since: 09/08/2008
Accepted Solutions: 56
Computer Expertise: Guru
Education: Univerity of Illinois / Urbana Champaign, Master's Degree
Gideon7 has been an Expert for 4 months, during which he has posted 162 comments and answered 56 questions. Gideon7 is just one of 346 experts in the Microsoft Visual C++ Zone. 2 experts collaborated on this answer, which was graded an "A" by the asker.
 
 
20081119-EE-VQP-47 / EE_QW_2_20070628