Re: [Iup-users] About using IUP.Text:action in Lua

2018-01-17 Thread Hernan Cano
Hey, Pete: Thanks for your response. I cannot run your examples. It seems some kind of C/C++ language. I tried to run it with Lua v5.3.3, but I receive " syntax error near 'pGUI' ". I appreciate your feedback. It's difficult for me to understand (by first sight) how can I use ValueChanged_CB. F

[Iup-users] Redundant test if.

2018-01-17 Thread Ranier VF
Hi, Redundant test if. --- a\src\gtk\iupgtk_toggle.c Fri Jun 16 14:35:02 2017 +++ b\src\gtk\iupgtk_toggle.c Thu Jan 18 00:25:04 2018 @@ -469,18 +469,17 @@ if (!ih->parent) return IUP_ERROR; - if (radio) -ih->data->is_radio = 1; - value = iupAttribGet(ih, "IMAGE"); if (valu

[Iup-users] CID 210622 (#1 of 1): Resource leak (RESOURCE_LEAK)

2018-01-17 Thread Ranier VF
Hi, Issue found by Coverity Scan. CID 210622 (#1 of 1): Resource leak (RESOURCE_LEAK) --- a\src\gtk\iupgtk_colordlg.c Sun Jul 26 03:10:04 2015 +++ b\src\gtk\iupgtk_colordlg.c Wed Jan 17 23:12:37 2018 @@ -48,6 +48,7 @@ } palette = palette_p; } + free(gtk_str); str[off-1] = 0; /* r

Re: [Iup-users] About using IUP.Text:action in Lua

2018-01-17 Thread Hernan Cano
Oh, Pete, very good. I'll see this repository Thanks. 2018-01-17 2:05 GMT-05:00 Pete Lomax: > Hi there Hernan, > You might want to visit https://bitbucket.org/petelomax/phix/src and then > click on demo, rosetta, 7guis > > Although written in a different language, all 7 entries are completed. >

Re: [Iup-users] About using IUP.Text:action in Lua

2018-01-17 Thread Hernan Cano
Fine, Antonio. Thanks. 2018-01-17 5:42 GMT-05:00 Antonio Scuri: > The action callback is called during value modification, so if you consult > the attribute during the callback it will return the old value. The new > value is passed as a parameter in the callback. > -

Re: [Iup-users] Coverity Scan to MathGL and Tulio libraries

2018-01-17 Thread Antonio Scuri
Hi, I don't think IupTuio is being used anymore. We are actually very outdated from their latest release. You can find it here www.tuio.org MathGL is maintained by Alexey Balakin, you can find it here mathgl.sourceforge.net We are also a couple of versions behind. These are described in

Re: [Iup-users] CID 210623 (#1 of 1): Explicit null dereferenced (FORWARD_NULL)

2018-01-17 Thread Ranier VF
Hi, You're right. My mistake. Best. Ranier De: Antonio Scuri Enviado: quarta-feira, 17 de janeiro de 2018 22:16 Para: IUP discussion list. Assunto: Re: [Iup-users] CID 210623 (#1 of 1): Explicit null dereferenced (FORWARD_NULL) In that case the loop wi

[Iup-users] Coverity Scan to MathGL and Tulio libraries

2018-01-17 Thread Ranier VF
Hi, Anybody have a contact with list of MathGL and TUIO C++ Library - part of the reacTIVision project libraries? Coverity Scan have many issues found in codebase of the two libraries. I strong suggest that owners maintainers, use Coverity to scan own code. Its free and really good tool. Best reg

Re: [Iup-users] CID 210623 (#1 of 1): Explicit null dereferenced (FORWARD_NULL)

2018-01-17 Thread Antonio Scuri
In that case the loop will be: while (capture != NULL) capture = capture->next_one; It is not necessarily an infinite loop. Best, Scuri 2018-01-17 19:48 GMT-02:00 Ranier VF : > Hi, > With fix in th SVN, the following may occur; > next is NULL. > If the first capture->type != IMASK

Re: [Iup-users] CID 210623 (#1 of 1): Explicit null dereferenced (FORWARD_NULL)

2018-01-17 Thread Ranier VF
Hi, With fix in th SVN, the following may occur; next is NULL. If the first capture->type != IMASK_CAPT_OPEN, an infinite loop will occur. Maybe switch to Do While loop? Best. Ranier. De: Antonio Scuri Enviado: quarta-feira, 17 de janeiro de 2018 21:04 Par

Re: [Iup-users] CID 210623 (#1 of 1): Explicit null dereferenced (FORWARD_NULL)

2018-01-17 Thread Antonio Scuri
Fixed and committed to SVN. I have no idea if that condition could occur... Best, Scuri 2018-01-16 23:29 GMT-02:00 Ranier VF : > Hi, > Issue found by Coverity Scan. > CID 210623 (#1 of 1): Explicit null dereferenced (FORWARD_NULL) > 9. var_deref_op: Dereferencing null pointer next. > > File: i

Re: [Iup-users] CID 210616 (#1 of 1): Missing varargs init or cleanup (VARARGS)

2018-01-17 Thread Antonio Scuri
Not that simple. The REQUIRE macro is used before va_start, I had to define another macro and goto label to get the job done. Fixed and committed to SVN. Best, Scuri 2018-01-16 23:38 GMT-02:00 Ranier VF : > Hi, > Issue found by Coverity Scan. > CID 210616 (#1 of 1): Missing varargs init or

Re: [Iup-users] CID 210583 (#1 of 1): Division or modulo by zero (DIVIDE_BY_ZERO)

2018-01-17 Thread Antonio Scuri
Fixed and committed to SVN. Best, Scuri 2018-01-16 23:46 GMT-02:00 Ranier VF : > Hi, > Issue found by Coverity Scan. > CID 210583 (#1 of 1): Division or modulo by zero (DIVIDE_BY_ZERO) > . divide_by_zero: In expression time_delay / frame_time, division by > expression frame_time which may be

Re: [Iup-users] CID 210578 (#1 of 1): Dereference null return value (NULL_RETURNS)

2018-01-17 Thread Antonio Scuri
Fixed and committed to SVN. This is an application error. Best, Scuri 2018-01-16 23:54 GMT-02:00 Ranier VF : > Hi, > Issue found by Coverity Scan. > CID 210578 (#1 of 1): Dereference null return value (NULL_RETURNS) > > --- a\srccontrols\matrix\iupmat_getset.cTue Sep 19 12:43:20 2017

Re: [Iup-users] CID 210621 (#1 of 1): Copy-paste error (COPY_PASTE_ERROR)

2018-01-17 Thread Antonio Scuri
Definitely a copy&paste error. Fixed and committed to SVN. Best, Scuri 2018-01-16 23:34 GMT-02:00 Ranier VF : > Hi, > Issue found by Coverity Scan. > CID 210621 (#1 of 1): Copy-paste error (COPY_PASTE_ERROR) > copy_paste_error: max_w in max_w > geometry.min_height looks like a > copy-paste err

Re: [Iup-users] CID 210638 (#1 of 1): Explicit null dereferenced (FORWARD_NULL)

2018-01-17 Thread Antonio Scuri
Fixed and committed to SVN. Best, Scuri 2018-01-16 23:17 GMT-02:00 Ranier VF : > Hi, > Issue found by Coverity Scan. > CID 210638 (#1 of 1): Explicit null dereferenced (FORWARD_NULL) > > --- a\srcglcontrols\iup_gldraw.cThu Aug 04 14:58:16 2016 > +++ b\srcglcontrols\iup_gldraw.c

Re: [Iup-users] IupLoadAnimation loads only first frame of GIF?

2018-01-17 Thread Antonio Scuri
That depends on the GIF. Please send the GIF so I can take a look what's going on. Best, Scuri 2018-01-17 4:00 GMT-02:00 Mihail Ivanchev : > Hello IUP, > > I noticed that IupLoadAnimation loads only the 1st frame of a GIF file > containing several. Here is how I use it: > > appDlg.loadingAnimS

Re: [Iup-users] About using IUP.Text:action in Lua

2018-01-17 Thread Antonio Scuri
The action callback is called during value modification, so if you consult the attribute during the callback it will return the old value. The new value is passed as a parameter in the callback. So you should change your code to: function txtC:action(c, new_value) if new_value and tonum