[prev in list] [next in list] [prev in thread] [next in thread] 

List:       aspell-user
Subject:    [Aspell-user] Problem using delphi unit/demo project
From:       isaac () blueapples ! org
Date:       2005-11-03 19:39:26
Message-ID: 38001.127.0.0.1.1131046766.squirrel () 127 ! 0 ! 0 ! 1
[Download RAW message or body]

I am having several of problems with the Delphi unit and demo project.

In the Delphi unit it appeared that the function LinkFunctions was meant
to return True when it had successfully loaded all DLL procedures. This
wasn't the case, so I added a Result := true; line at the end.

In the demo project, in order to have LoadAspell find the installed ASpell
library I changed the call in CreateForm to this:

  if not LoadAspell('') then begin
    ShowMessage('Could not load ASpell.');
  end;

The library is loaded and as I trace through the program, various
functions are called successfully from the DLL.

So far so good, but the demo is now giving AVs in the function on line 358
of GUIMain.pas:

    then s:=s+' '+key_info.def;

The debugger says key_info.def = ''

I am not really familiar with using PChar and such, so I don't know what
might be causing this problem. The value appears to be properly assigned,
but concatenation fails. I have tried various casts and checks but I can't
get it. Any help would be appreciated.

I am using Delphi 2005 and have the latest ASpell from the site,
aspell-15.dll, installed.
-Isaac

http://blueapples.org

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic