Eric,
     apart from writing line[i] instead of Q9Word[i], you may consider fiddling
with the compiler setting. Goto 68K Processor in Project Settings and mark
PC-Relative Strings.
See if it helps you.


Marcin



From: Eric Siu <[EMAIL PROTECTED]> on 21.07.99 08:26

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:    (bcc: Marcin Frelek-M/PGI)
Subject:  bus error




     I want to directly assign string to a array of charptr, like the
following,

CharPtr line[1000];
UInt i;

for (i=0;i<1000;i++){
     line[i]=MemPtrNew(14);
     StrCopy(Q9Word[i],"today is fine");
}


when the i is up to 600, the emulator say "bus error", what's the problem?
or any other way to directly assgin a string to a CharPtr ?

     Thanks a lot!!!

Eric









Reply via email to