Subj : SCFG uifc library init er
To   : Nightfox
From : Digital Man
Date : Thu Nov 27 2014 09:59 am

 Re: SCFG uifc library init error
 By: Nightfox to Digital Man on Sun Nov 09 2014 01:49 pm

> Hi DM,
>
> I'm currently running the October 29 build of Synchronet for Windows, and
> just today I noticed that when I try torun SCFG from a command prompt, it
> prints "uifc library init returned error -2.." (where the .. characters are
> seemingly random high-ASCII characters, as if it printed a non-terminated
> string). However, if I run SCFG via BBS > Configure from the Synchronet
> control panel, SCFG runs successfully.  I don't think it's due to anything
> I've changed on my BBS machine, since I used to be able to run SCFG from
> the command prompt successfully before updating my binraies, and I haven't
> changed any environment settings on my BBS machine.

Thanks for the bug report.

The "-2" error indicates a problem with the number of rows in the window (less
than 14). Here's the associated code (where MIN_LINES is 14):

   if(api->scrn_len<MIN_LINES) {
       cprintf("\7UIFC: Screen length(%u) must be %d lines or greater\r\n"
           ,api->scrn_len,MIN_LINES);
       return(-2);
  }

Now, I would expect thaterror message to be displayed too.

I tried to reproduce this problem by setting a command prompt window to 13
rows/lines, butthe code in uifc that automatically increases the window size
to 14 (if detected to be less than 14) kicked in and worked without