[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
CppBuilderRunTimeErrors

C++ Builder run-time errors

Other errors

Overview of run-time errors

  • [Debugger Exception Notification] List index out of bounds
  • Project MyProject.exe raised exceptions class EAccessViolation with message 'Access violation at address 01193E3B in module 'BORLNDMM>DLL'. Write of address 40960618'. Process stopped. Use Step of Run to continue.
  • [Debugger Exception Notification] Project myProject.exe raised exception class _STL::out_of_range with message 'Exception Object Address: 0x704C9A'
  • [Debugger Exception Notification] Project myProject.exe raised exception class EInvalidGraphicOperation with message 'Scan line index out of range'.
  • [BCB.EXE - BORDBK61.DLL] Internal Error EVH-1077
  • [Debugger Exception Notification] Project myProject.exe raised exception class EConvertError with message '69.69 is not a valid floating point value'.

[Debugger Exception Notification] List index out of bounds

Due to a TPageControl

The code below looks flawless. Yet, the commented line must be uncommented to make it work.

void hideAllTabs(TPageControl * pageControl)
{
  const unsigned int pageCount = pageControl->PageCount;
  for (unsigned int i=0; i<pageCount; ++i)
  {
    //pageControl->HandleNeeded();
    pageControl->Pages[i]->TabVisible = false;
  }
}


Project MyProject.exe raised exceptions class EAccessViolation with message 'Access violation at address 01193E3B in module 'BORLNDMM.DLL'. Write of address 40960618'. Process stopped. Use Step of Run to continue

A standard access violation.

[Debugger Exception Notification] Project myProject.exe raised exception class _STL::out_of_range with message 'Exception Object Address: 0x704C9A'

When you see this, check out the line of code pointed to. When you see the code below (from the header file _vector.h) you know you've been reading/writing out of the range of your std::vector.
      __stl_throw_out_of_range("vector");


P.S. Be happy that this error occurred! You used the member function at() instead of the index operator []. Would you've used the latter, this would be a time bomb error.

[Debugger Exception Notification] Project myProject.exe raised exception class EInvalidGraphicOperation with message 'Scan line index out of range'.

When you for example use this code (using the VCL) below, you will find no errors in it.

Image1->Visible = false;
const unsigned int maxx = Image1->Width;
const unsigned int maxy = Image1->Height;
unsigned char * myLine = NULL;
for (unsigned int y = 0; y < maxy; ++y)
{
  myLine = static_cast<unsigned char*> Image1->Picture->Bitmap->ScanLine[y];
  for (unsigned int x = 0; x < maxx; ++x)
  {
    myLine[x*3+2] = x  ; //Red  
    myLine[x*3+1] = y  ; //Green  
    myLine[x*3+0] = x+y; //Blue  
  } //Next y 
} //Next x
//Actually draw it on Form1
Form1->Canvas->Draw(0,0,Image1->Picture->Graphic);


Solution:
  • Make sure that Image1 has a bitmap loaded (instead of a JPEG).
  • Set AutoSize to true

[BCB.EXE - BORDBK61.DLL] Internal Error EVH-1077

An undocumented error. I found this to occur do to corrupted/damaged bitmaps in my program. Creating fresh bitmaps solved the problem.

[Debugger Exception Notification] Project myProject.exe raised exception class EConvertError with message '69.69 is not a valid floating point value'.

Caused by this short snippet of code:
const String myString = "69.69";
const double myDouble = myString.ToDouble();
The error is caused due to the locale setup of the computer. Set the computer language to English, or change the string to e.g. '69,69' (that is the Dutch notation)

last edited (July 3, 2007) by bilderbikkel, Number of views: 9371, Current Rev: 15 (Diff)

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Tore Nestenius at .NET Consultant - Synchron Data.