Jump to content
Sign in to follow this  
BKor

migrating projects to RAD Studio 12

Recommended Posts

Hello everybody,

 

I installed Rad Studio Athens ( with some graphic 3rd parties) and now I am trying to open some projects that I have done in Alexandria ( Rad Studio11).

Unfortunatelly I am not succesfull -  (access violation at address 00876830 in module "Project1.exe" (offset 6830). Read of address 000000000.)

I am working with C++ Builder and before I had no problems with migrating projects from previous versions of Rad Studio.

Any advice that could help me running older projects?

 

 

Share this post


Link to post

Try to check the stack of called methods, someone try to use a wrong pointer value or object reference.

Share this post


Link to post
2 hours ago, BKor said:

Any advice that could help me running older projects?

You can run with debugger and see what's the cause ...

Share this post


Link to post

I am not used to work with debugger or stack of called  methods. I will try it anyway. Is it of any help if ( in case of not able to interpret debugger window...) I make a screenshot of debugger window and post it?

Share this post


Link to post
16 minutes ago, BKor said:

I am not used to work with debugger or stack of called  methods. I will try it anyway. Is it of any help if ( in case of not able to interpret debugger window...) I make a screenshot of debugger window and post it?

If you post here the piece of source code interested and the screen shoot, sure someone can help you.

 

Share this post


Link to post

I tried with debugging,

it looks like there is problem with for loop:

 

for (int j=0; j<c; j++)

 

The initial value of j after running with debugging is 12 (j=12, see the image) , although it should start the loop with value j=0.

 

image.thumb.png.216811788eabffff7f0bb519b15790b3.png

 

There seems to be another problem with c, which shows no value at all.

j and c are defined as follows:

 

TForm1 *Form1;
const int c=9;
TBitmapLayer* pLayer[c];
int i,j=0;
int r;
bool slip[c]={ false };
bool bing[c]={ false };
bool bong[c]={ false };
int alpha[c]={ 0 };

.....

 

If I replace in the loop c with cc ( which is defined solely as int (int cc=9 ; ), not as const int (const int c=9;),

then the value of cc shows as expected, that is 9.

 

I might be totally wrong, never worked with a debugger before.

I attached the image of debugging window below.

Is it possible that some kind of "compile settings", which are different from previous version of RAD Studio make this problem?

Thanks for any advice.

 

 

 

 

Delphi-praxis-loop-problem.jpg

Share this post


Link to post
18 minutes ago, BKor said:

for (int j=0; j<c; j++)

 

The initial value of j after running with debugging is 12 (j=12, see the image) , although it should start the loop with value j=0.

You are inspecting the value of j too early; It hasn't been assigned a value yet. The debugger stops on the breakpoint at the location just before code is executed. Not after the code has been executed.

 

If you step one line into the loop then j will have been assigned the initial value.

Share this post


Link to post

I tried to migrate to Rad Studio 12 Athens another older project from Rad Studio 11.

I run it with debugger and it shows:

 

1) still within c++ builder window:

 

image.thumb.png.ea6610877d90d5e540447ea477288d36.png

 

2) then continues to pop up c++ builder window with:

 

image.thumb.png.810072964b668ed4fc99fc287d7525de.png

 

3) After I close all pop up windows it shows in application window another series of alerts:

 

image.thumb.png.87a9ba9c2fcd10cc047599a0650ab137.png

 

Access violation remains in first case in module rtl290.bpl and then in module Project1.exe

I could not monitor anything with debugger, because closing the alerts led me to the application with another series of alerts....

 

Hmmm, thx for any advice

 

 

 

 

1.jpg

2.jpg

3.jpg

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×