I get a fatal error when running FAA against any of my projects. Details shown in the below screenshot. Can anyone suggest a fix?
I'm running VFP9 with SP2 under Windows 10.
Hi John,
Error occurs when attempting to instantiate class containing _accountlist
(probably a member of a composite class) using this instruction:
loCont = NewObject(Iif(m.tlClass;
, m.tcClass; && container class
, m.tcParentClass; && parent class of container class
), m.lcClassLoc; && corresponding class library
, 0)
If you can reproduce the error using the command window, you typically can try to:
(replace eznewbank.vc?
by the library of the containing class if different)
copy file eznewbank.vc? to save\eznewbank.vc?
pack eznewbank.vcx
compile classlib eznewbank.vcx
and retry.
As you use copy mode, FAA should copy the updated eznewbank.vc?
upon next execution. If not please delete the derived copy c:\test\…\eznewbank.vc?
before restarting FAA.
Update: generally speaking, pack
and compile classlib
solve a lot of memo-related issues, and save a lot of space in your compiled .exe
Hi
I did as suggested and packed and compiled the class but still get an error, albeit at a different place, in the same class. Updated screenshot attached.
Can you execute newObject()
on the containing class in the command window as explained earlier?
Can you explain the class design here ?
Hi
I don't get any error when I run the form. The form, and in fact the whole application, work fine and have done so for several years.
The form contains a third-party calendar class, which is where the code you refer to is located, so I am not familiar with the class design.
I will maybe try next week to replace the form with a version that does not have the calendar class and see if that works. I also have other projects to try but am holding back as they are more complex than this project.
John
I'm pretty convinced that the C000005 error is due to a .vct
involved in the container class instantiation.
Recompiling a class library also packs its memo:
cd <directory holding your *.vcx>
copy file *.vc? to save\*.vc? && backup
compile classlib *.vcx
to make sure to copy the compiled files, it may be safer to delete all c:\test\…\*.vc?
before restarting FAA in copy/test mode.