BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[Link Error] Fatal: Access violation. Link terminated.

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE)
View previous topic :: View next topic  
Author Message
Yassine Sohbi
Guest





PostPosted: Mon Apr 30, 2007 7:35 pm    Post subject: [Link Error] Fatal: Access violation. Link terminated. Reply with quote



Hello,

My problem seems to be very simple.

In my application, under BCB6, XP, a RAM of 4Go, I do static allocation as :

#define BETHA 64

MyType Table[BETHA]


When I increase BETHA ( 128, 512 , 1024) and rebuilt my project ,
in some cases I got this message : "[Link Error] Fatal: Access
violation. Link terminated.".


My question is how to solve this problem.
Thank you for your response,

Regards,

Y. Sohbi
Back to top
dhoke
Guest





PostPosted: Mon Apr 30, 2007 10:54 pm    Post subject: Re: [Link Error] Fatal: Access violation. Link terminated. Reply with quote



May be irrelevant but curious, What is the size of "MyType" ( sizeof(MyType)
== ?) ?

"Yassine Sohbi" <sohbi (AT) grignon (DOT) inra.fr> wrote in message
news:4635fe74 (AT) newsgroups (DOT) borland.com...
Quote:
Hello,

My problem seems to be very simple.

In my application, under BCB6, XP, a RAM of 4Go, I do static allocation as
:

#define BETHA 64

MyType Table[BETHA]


When I increase BETHA ( 128, 512 , 1024) and rebuilt my project ,
in some cases I got this message : "[Link Error] Fatal: Access violation.
Link terminated.".


My question is how to solve this problem.
Thank you for your response,

Regards,

Y. Sohbi
Back to top
Yassine Sohbi
Guest





PostPosted: Wed May 02, 2007 8:10 am    Post subject: Re: [Link Error] Fatal: Access violation. Link terminated. Reply with quote



dhoke a écrit :
Quote:
May be irrelevant but curious, What is the size of "MyType" ( sizeof(MyType)
== ?) ?

The size of my .exe doesn't exceed 500 Ko,
and MyType size is very "normal" so a size like 300 octets.


Quote:

"Yassine Sohbi" <sohbi (AT) grignon (DOT) inra.fr> wrote in message
news:4635fe74 (AT) newsgroups (DOT) borland.com...
Hello,

My problem seems to be very simple.

In my application, under BCB6, XP, a RAM of 4Go, I do static allocation as
:

#define BETHA 64

MyType Table[BETHA]


When I increase BETHA ( 128, 512 , 1024) and rebuilt my project ,
in some cases I got this message : "[Link Error] Fatal: Access violation.
Link terminated.".


My question is how to solve this problem.
Thank you for your response,

Regards,

Y. Sohbi

Back to top
Yassine Sohbi
Guest





PostPosted: Wed May 02, 2007 2:29 pm    Post subject: Re: [Link Error] Fatal: Access violation. Link terminated. Reply with quote

Other detail

with
#define BETHA 512

I rebuilt my project, It turns well and,
my .exe size is exactely 551 Ko.

with
#define BETHA 1024

I have got this message

[Link Error] Fatal: Access violation. Link terminated.


Yassine Sohbi a écrit :
Quote:
dhoke a écrit :
May be irrelevant but curious, What is the size of "MyType" (
sizeof(MyType) == ?) ?

The size of my .exe doesn't exceed 500 Ko,
and MyType size is very "normal" so a size like 300 octets.



"Yassine Sohbi" <sohbi (AT) grignon (DOT) inra.fr> wrote in message
news:4635fe74 (AT) newsgroups (DOT) borland.com...
Hello,

My problem seems to be very simple.

In my application, under BCB6, XP, a RAM of 4Go, I do static
allocation as :

#define BETHA 64

MyType Table[BETHA]


When I increase BETHA ( 128, 512 , 1024) and rebuilt my project ,
in some cases I got this message : "[Link Error] Fatal: Access
violation. Link terminated.".


My question is how to solve this problem.
Thank you for your response,

Regards,

Y. Sohbi

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.