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 

FastMM and D2007

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Language BASM
View previous topic :: View next topic  
Author Message
Jan Norden [ECO group]
Guest





PostPosted: Fri Apr 13, 2007 7:47 pm    Post subject: FastMM and D2007 Reply with quote



Haven't done win32 for a long time.

I am porting a project from D7 to D2007, and get the following message:

[DCC Error] E2201 Need imported data reference ($G) to access
'IsMultiThread' from unit 'FastMM4'

I have no idea what it means. $G looks like a compiler directives .
Unfortunately the help on compiler directives
(ms-help://borland.bds5/devcommon/delphicompdirectiveslist_xml.html) is
empty.

Googling shows that it may be equivalent to $IMPORTEDDATA, but I have
no idea where to set this from the IDE. I guess it should be under the
linker options, since it seems to happen after all compilation is done,
but I can see nothing fitting there either.

And I have other projects using FastMM4 that compile just fine.

--
Back to top
Hallvard Vassbotn
Guest





PostPosted: Tue Apr 17, 2007 6:33 pm    Post subject: Re: FastMM and D2007 Reply with quote



Hi Jan,

"Jan Norden [ECO group]" wrote:
Quote:
Haven't done win32 for a long time.

Welcome back! ;)

Quote:
$G looks like a compiler directives .
Unfortunately the help on compiler directives
(ms-help://borland.bds5/devcommon/delphicompdirectiveslist_xml.html) is
empty.

Googling shows that it may be equivalent to $IMPORTEDDATA, but I have
no idea where to set this from the IDE. I guess it should be under the
linker options, since it seems to happen after all compilation is done,
but I can see nothing fitting there either.

You cannot set it from the IDE (yet). $G / $IMPORTEDDATA is documented here:
http://hallvards.blogspot.com/2006/09/hack13-access-globals-faster.html

Quote:
I am porting a project from D7 to D2007, and get the following message:

[DCC Error] E2201 Need imported data reference ($G) to access
'IsMultiThread' from unit 'FastMM4'

I have no idea what it means.
And I have other projects using FastMM4 that compile just fine.

FastMM does not contain any $G or $IMPORTEDDATA settings. It sounds like the
FastMM4 unit was compiled with $G or $IMPORTEDDATA disabled. This can be due
to a setting in the .dproj file, for instance.

Are you are trying to compile and link FastMM4 into a package?
Back to top
Dennis Passmore
Guest





PostPosted: Wed Apr 18, 2007 3:06 am    Post subject: Re: FastMM and D2007 Reply with quote



Have you tried just editting FastMM4Options.inc and changing
{.$define AssumeMultiThreaded} by removing the period.
Back to top
Jan Norden [ECO group]
Guest





PostPosted: Wed Apr 18, 2007 7:14 pm    Post subject: Re: FastMM and D2007 Reply with quote

Dennis Passmore wrote:

Quote:
Have you tried just editting FastMM4Options.inc and changing
{.$define AssumeMultiThreaded} by removing the period.

Thanks, just found that in the FAQ, (Should have read that first).

--
Back to top
Jan Norden [ECO group]
Guest





PostPosted: Wed Apr 18, 2007 7:25 pm    Post subject: Re: FastMM and D2007 Reply with quote

Jan Norden [ECO group] wrote:

Quote:
Dennis Passmore wrote:

Have you tried just editting FastMM4Options.inc and changing
{.$define AssumeMultiThreaded} by removing the period.

Thanks, just found that in the FAQ, (Should have read that first).

Except it wasn't that, it was UseRuntimePackages, though
AssumeMultiThreaded should help as well.

--
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Language BASM 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.