[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
CppBuilderRunTimeErrors
Displaying differences between revision 14 and the latest revision
= C++ Builder run-time errors =
== Other errors ==
* C++ compile errors
* C++ linking errors
* C++ runtime errors
* [[CppBuilderC compileE errors | C++ Builder compile errors ]]s
* C++ Builder linking errors
* C++ Builder run-time errors
* C++ Builder misc errors
== Overview of run-time errors ==
* [Debugger Exception Notification] List index out of bounds
* Due to a TPageControl
* 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.
[code]
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;
}
}
[/code]
=== 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 [blue]_vector.h[/blue]) you know you've been reading/writing out of the range of your std::vector.
[code]
__stl_throw_out_of_range("vector");
[/code]
P.S. Be happy that this error occurred! You used the member function [b]at()[/b] instead of the index operator [b][][/b]. 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.
[code]
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);
[/code]
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:
[code]
const String myString = "69.69";
const double myDouble = myString.ToDouble();
[/code]
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)¶
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
CppBuilderRunTimeErrors
Displaying differences between revision 14 and the latest revision
= C++ Builder run-time errors =
== Other errors ==
* C++ compile errors
* C++ linking errors
* C++ runtime errors
* [[CppBuilder
* C++ Builder linking errors
* C++ Builder run-time errors
* C++ Builder misc errors
== Overview of run-time errors ==
* [Debugger Exception Notification] List index out of bounds
* Due to a TPageControl
* 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.
[code]
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;
}
}
[/code]
=== 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 [blue]_vector.h[/blue]) you know you've been reading/writing out of the range of your std::vector.
[code]
__stl_throw_out_of_range("vector");
[/code]
P.S. Be happy that this error occurred! You used the member function [b]at()[/b] instead of the index operator [b][][/b]. 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.
[code]
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);
[/code]
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:
[code]
const String myString = "69.69";
const double myDouble = myString.ToDouble();
[/code]
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)¶
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
