FoxInCloud
Fatal error when running FAS
Gravatar is a globally recognized avatar based on your email address. Fatal error when running FAS
  John Beachill
  All
  Jul 23, 2019 @ 05:05am

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.

Gravatar is a globally recognized avatar based on your email address. re: Fatal error when running FAS
  FoxInCloud Support - Thierry N.
  John Beachill
  Jul 24, 2019 @ 01:24am

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

Gravatar is a globally recognized avatar based on your email address. re: Fatal error when running FAS
  John Beachill
  FoxInCloud Support - Thierry N.
  Jul 25, 2019 @ 07:55am

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.

Gravatar is a globally recognized avatar based on your email address. re: Fatal error when running FAS
  FoxInCloud Support - Thierry N.
  John Beachill
  Jul 25, 2019 @ 08:21am

Can you execute newObject() on the containing class in the command window as explained earlier?

Can you explain the class design here ?

Gravatar is a globally recognized avatar based on your email address. re: Fatal error when running FAS
  John Beachill
  FoxInCloud Support - Thierry N.
  Jul 26, 2019 @ 07:13am

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

Gravatar is a globally recognized avatar based on your email address. re: Fatal error when running FAS
  FoxInCloud Support - Thierry N.
  John Beachill
  Jul 27, 2019 @ 03:43am

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.

© 1996-2019