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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Violation ....

Status
Not open for further replies.

jbs

Programmer
Feb 19, 2000
121
US
A friend gave me some source code that was written using Borland 5.0.

I'm using 6.0 (i.e C++ builder 6.0).

I've got everything loaded and working fine however everytime I open the project I get the below error. All I do is hit 'ok' and the project opens fine. No problems.

My question is: Can anyone tell me what the error really means and how do I fix it?

thanks /j

------here is the error msg-------------
Error
Access Violation at address 00B558E3 in module bcbide60.bpl. REad of address 00000000.

---------end of error msg.

fyi, my XP file search does not find a file called bcbide60.bpl.
 
Alright, your going to have to sep through your code and see where it spawns an access violation. Is this a runtime problem? If so, set a breakpoint at the beginning of the code and step through until you find the line that spawns the access violation. Odds are, you'll see the reason it's causing an error. Cyprus
 
Actually this is interesting.

I used your idea(....classic case of I should of tried that earlier) and by setting breakpoints and stepping through the program it didn't yield the access violation.

Then it hit me......

The access error comes up when I open the project. I don't get any compile errors, link errors, and the program works. The error simply comes up when I open the project. After hitting 'ok' the IDE then comes up just fine.

I don't get the error when I try and open other projects. Only this project which was created under 5.0

Any ideas?

/j
 
Open the projects source file and step through that. From personal experience, I can tell you it probably encounters an error when creating forms. Step through the creation of the fomrs and find out which one. Then set a breakpoint in the forms create function. If your still getting an access violation when you start the program, go in to
Project->Edit Option Source
...and remove "bcbide60.bpl" and any other references to bcb6. Actually, it would probably be a good idea to change them to bcbide50 and such, if those aren't in there already. If worse comes to worse, copy the Option Source of a blank application and paste it in your troubled one over the source already there. Cyprus
 
It may be a problem with the *.bpr file which is the project file. There may be a line that is incompatable between versions. Check your help files for "What's New", Borland's community ( for known bugs, and . James P. Cottingham

I am the Unknown lead by the Unknowing.
I have done so much with so little
for so long that they think I am now
qualified to do anything with nothing.
 
sometimes with wierd stuff like this, it's always worth deleting the *.~*, *.obj and *.dsk files.... especially the *.dsk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top