Closed Thread
Results 1 to 6 of 6

Thread: Ancestor not found

  1. #1
    Jory is offline Newbie
    Join Date
    May 2009
    Posts
    7
    Rep Power
    0

    Ancestor not found

    Hey,

    I am writing a program in Delphi 5 (ancient, I know) and I am using an LMD componet called LMDWaveList. My program has the ability to change langauges and to do this I call the ReinitializeForms method. The program crashes during the ReInit. I get the following error:

    Project <myProjectName.exe> raised exception class EReadError with message "Ancestor for 'WaveList' not found. Process stopped. Use Step or Run to continue.

    I have tried clearing the contents of the wave compenent (all of my wave sounds) before the ReinitializeForms call, which worked in the past, but is not helping.

    Any suggestions?

    Thanks.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: Ancestor not found

    Have you set a breakpoint before you call ReinitializeForms and traced in to where it throws the exception? If all else fails, you may want to create the component dynamically instead of as a form object. That would allow you to delete it before calling the function, thus bypassing the problem.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  4. #3
    Jory is offline Newbie
    Join Date
    May 2009
    Posts
    7
    Rep Power
    0

    Re: Ancestor not found

    WingedPanther,

    I thought dynamically creating the component was a swell idea! I created the component manually, and set it to nil just prior to the reinitializForms call. This time, I got the following error:

    "Project <myProjectName.exe> raised exception class EClassNotFound with message 'Class TLMDWaveList not found'. Process Stopped."

    I stepped into the Reinit code, where the function "InternalReloadComponentRes(const ResName: string; HInst: THandle; var Instance: TComponent): Boolean" goes on and on calling each component on my form's contstructors. The InternalReloadComponentRes code breaks on the call

    "Instance := AsInheritedReader.ReadRootComponent(Instance);".

    I made sure that my delphi has a library path to the components source code. As I said, this used to work.

    Further suggestions?

  5. #4
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: Ancestor not found

    Since I don't have the library, the only thing I can think of is to see if the publisher of the component has a forum.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  6. #5
    Jory is offline Newbie
    Join Date
    May 2009
    Posts
    7
    Rep Power
    0

    Re: Ancestor not found

    Sounds good, thanks for your help.

  7. #6
    arslan220 Guest

    Re: Ancestor not found

    thanks for your help.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Intermediate Finding Nearest Common Ancestor in a BST
    By fayyazlodhi in forum C Tutorials
    Replies: 0
    Last Post: 06-19-2011, 09:11 AM
  2. Found this
    By stevie754 in forum Games
    Replies: 1
    Last Post: 03-14-2011, 04:50 PM
  3. Since i found I CODECALL I...
    By supergfs in forum Introductions
    Replies: 4
    Last Post: 01-31-2008, 07:27 PM
  4. I found this PHP site
    By techni68 in forum PHP Development
    Replies: 2
    Last Post: 03-31-2007, 02:11 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts