EAccessViolation and arrays problems
From: vooood (vooood_at_IHATESPAMgmail.com)
Date: 03/25/05
- Next message: Lukas Gradl: "Re: EAccessViolation and arrays problems"
- Previous message: La Mygale: "Explore CDRoms with TShellTreeView"
- Next in thread: Lukas Gradl: "Re: EAccessViolation and arrays problems"
- Reply: Lukas Gradl: "Re: EAccessViolation and arrays problems"
- Reply: Rob Kennedy: "Re: EAccessViolation and arrays problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 25 Mar 2005 16:39:25 +0100
this is the type
----------------
TSpellsTag = class
mults: array[1..32] of shortstring;
times, spell, spellbook: array[1..256] of shortstring;
end;
var aspells: TSpellsTag
(aspells is a global var)
this is the first usage
-----------------------
aspells.spell[order]:= copy( line, 1, idx );
order is 100% = 1, line is a string(nonempty), and idx is a nonzero
number (greater than 0 because this line is called after idx is more than 0)
this is the error
-----------------
Project spellconv.exe raised exception class EAccessViolation with
message 'Access violation at address 0040449E in module 'spellconv.exe'.
Write of address 00012004'. Process stopped. Use Step or Run to continue.
i get the same error even if i try something like aspells.spell[1]:= '***';
i just can't get what's wrong.. please help me.. i use delphi 6 with
winxp sp2..
thanx
vooood
- Next message: Lukas Gradl: "Re: EAccessViolation and arrays problems"
- Previous message: La Mygale: "Explore CDRoms with TShellTreeView"
- Next in thread: Lukas Gradl: "Re: EAccessViolation and arrays problems"
- Reply: Lukas Gradl: "Re: EAccessViolation and arrays problems"
- Reply: Rob Kennedy: "Re: EAccessViolation and arrays problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]