Re: xVariable max 1024 bytes ?

"[email protected] [gui4cli]" <[email protected]> 13 May 2014 15:54:57 -0700
Newsgroups gmane.comp.windows.gui4cli
Message-ID <[email protected]>
 Hi Fer,

I think it's a bug, specifically with xVariables, that can be fixed.

I set very large buffers (32 kB) in one of my guis because I have to read in
a pipe buffer from a dll. So I read various amounts of data up to 32 kB
in a single string without ever getting a buffer error.

Chris


---In [email protected], <fmstoopman@...> wrote :

 Hi Chris,
 

 This is really frustrating. In my app it runs fine this way.
 It seems that the buffersize is valid for all gui's in the same G4C instance.
 It also seems that Xvar's are parsed before any other g4c event.
 So, the only way to solve this is to start with a "starting gui" in which the
 buffers are declared:
 

 ========================================
 G4C StartIntro
 xonload
   set buffers 4096
   guiload ":Intro_gui.gui"
   guiquit #this
 ========================================
 

 and the main gui:
 

 ========================================
 G4C INTRO_GUI
 xOnLoad
    guiopen #this
 XOnClose
    set buffers 1024
    guiQuit #this
 WINDOW 179 137 200 100 'My 1st gui'
 XBUTTON 30 35 145 40 'Click Me!'
    guiQuit #this
 xVariable test
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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