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.
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.
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?
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.
Sounds good, thanks for your help.
thanks for your help.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks