FoxInCloud
Strange error regarding sficsets
Gravatar is a globally recognized avatar based on your email address. Strange error regarding sficsets
  Paul
  All
  Jan 8, 2019 @ 01:40pm

Hi,

I was going to perform more testing of my previous problems, but I had to end-task FAS and after that I can no longer run sfictest!!

When I run it I receive this error :

Awapphost.warning_xxxsetsparms() - As of FoxInCloud version 2.10, xxxSet.Init() (as awSets of awPublic.prg) accepts 2 parameters
Please take the following steps:

modify command 'C:\work_FoxInCloud\4manufacturing-FoxInCloud\programs\sficsets.prg'

After
	procedure sficSets.Init

Add this instruction:
lparameters ;
  result as String; && @ {en} error if any {fr} erreur éventuelle
, toAppHost as awAppHost of awAppHost.fxp && {en} Application Host object {fr} Objet Hôte d'application

For more information about these 2 parameters,
modify command (Home(1) + '\Tools\AB\AW\App\Progs\xxxSets.prg')

Awapphost.init_app_() - Application environment class 'sficSets' could not be instantiated.: ""

Awapphost.init() - Application could not start: ""

sficsets has not changed - it still contains all of the correct code, including the lparameters statement!
sficserver still contains the correct startup settings :

cAppSetsLib = 'sficSets.prg'
cAppSets = 'sficSets' && sficSets

.
I have deleted the contents of the Temp directory in case something was corrupted but this has not helped.
I have also recompiled sficsets.

It seems that doing the end-task has corrupted something, but I don't know what.

Any idea?

Paul

Gravatar is a globally recognized avatar based on your email address. re: Strange error regarding sficsets
  FoxInCloud Support - Thierry N.
  Paul
  Jan 8, 2019 @ 01:50pm

maybe delete file wwRequestLog.*

Gravatar is a globally recognized avatar based on your email address. re: Strange error regarding sficsets
  Paul
  FoxInCloud Support - Thierry N.
  Jan 8, 2019 @ 02:04pm

Deleted, still get the weird error...

Gravatar is a globally recognized avatar based on your email address. re: Strange error regarding sficsets
  Paul
  Paul
  Jan 8, 2019 @ 02:53pm

I have found the problem and sorry to waste your time.
I had a bug when calling a function from within xxxsets and the bug was passing too many parameters to the function.

It looks like FiC's error handler detects a "too many parameters" error and produces the error message I posted before.

Paul

Gravatar is a globally recognized avatar based on your email address. re: Strange error regarding sficsets
  FoxInCloud Support - Thierry N.
  Paul
  Jan 8, 2019 @ 11:45pm

no worry it happens when tackling a new system…

I had this in mind… we added this code when adding parameters to awSets.Init():

catch to oException when InList(m.oException.ErrorNo;
 , 94; && Must specify additional parameter
 , 1238; && No PARAMETER statement found
 )

Could now be removed.

© 1996-2024