Re: xVariable max 1024 bytes ?
"Dimitris Keletsekis [email protected] [gui4cli]" <[email protected]> Wed, 14 May 2014 16:12:36 +0300
| Newsgroups | gmane.comp.windows.gui4cli |
|---|---|
| Message-ID | <CAHiKg1Uupqa1etOPwPg8uM3jcfZ=hovUUtEWo-HEUq7Djip1cQ@mail.gmail.com> |
Set buffers is a command so it will be executed after the script is parsed, whereas the starting state of the xVariable is set while the script is being parsed. You can have a launcher gui, as mentioned, or I could add a "#Buffers" parser command (like #include), to set them on the fly. I'll have a look. Dimitris On Wed, May 14, 2014 at 1:54 AM, [email protected] [gui4cli] < [email protected]> wrote: > > > > 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 > > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > ### > ======================================= > > Hope this will work out > (not tested on an executable) > > fer > > > >