Re: [E-devel] Entry widget, memory corrupted

2012-10-12 Thread The Rasterman
On Thu, 4 Oct 2012 07:55:30 -0400 (EDT) david.obo...@aliceadsl.fr said:

i've run your small app in valgrind - zero complaints. no crashes. it works
fine for me. your code seems to be a bit heavy in what it does on every single
change by a user, and its limited to dealing with 1 line at a time of change,
but i dont immediately spot anything bad with your code other than not checking
return values like from elm_entry_selection_get() (it could return NULL and u
strdup wit without checks). also you play with the selection meaning existing
selections get killed too., but that wouldnt case your issue. something is
stomping over the object structure memory and corrupting it. what is doing that
- i don't know. it seems to not do it here.

> I have found the roots of my problem:
> it's the COMPAT_SMART_DATA(sd)->text_get(obj, part); instruction
> in the elm_widget.c
> When I arrive in this instruction, I have a memory corrupted
> 
> - Mail original -
> De: "Cedric BAIL" 
> À: "Enlightenment developer list" 
> Envoyé: Jeudi 4 Octobre 2012 10:57:52
> Objet: Re: [E-devel] Entry widget, memory corrupted
> 
> On Thu, Oct 4, 2012 at 5:18 PM,   wrote:
> >I write a simple text editor with the Entry widget (elementary 1.7).
> >But when I use that in a "big" file (for example 300 lines),
> >I have an memory corrupted error (it works for small file).
> >The Entry widget has a maximal number of character?
> 
> Not really and ecrire seems to be fine with big file. Look at
> http://trac.enlightenment.org/e/browser/trunk/ecrire for a sample code
> that use elm entry.
> -- 
> Cedric BAIL
> 
> --
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 
> --
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


-- 
- Codito, ergo sum - "I code, therefore I am" --
The Rasterman (Carsten Haitzler)ras...@rasterman.com


--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Entry widget, memory corrupted

2012-10-12 Thread The Rasterman
On Thu, 4 Oct 2012 04:18:24 -0400 (EDT) david.obo...@aliceadsl.fr said:

> Hello,
> 
>I write a simple text editor with the Entry widget (elementary 1.7).
>But when I use that in a "big" file (for example 300 lines), 
>I have an memory corrupted error (it works for small file).
>The Entry widget has a maximal number of character?

the only limits are how much memory you have.

-- 
- Codito, ergo sum - "I code, therefore I am" --
The Rasterman (Carsten Haitzler)ras...@rasterman.com


--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Entry widget, memory corrupted

2012-10-04 Thread david . oboeuf
I have found the roots of my problem:
it's the COMPAT_SMART_DATA(sd)->text_get(obj, part); instruction
in the elm_widget.c
When I arrive in this instruction, I have a memory corrupted

- Mail original -
De: "Cedric BAIL" 
À: "Enlightenment developer list" 
Envoyé: Jeudi 4 Octobre 2012 10:57:52
Objet: Re: [E-devel] Entry widget, memory corrupted

On Thu, Oct 4, 2012 at 5:18 PM,   wrote:
>I write a simple text editor with the Entry widget (elementary 1.7).
>But when I use that in a "big" file (for example 300 lines),
>I have an memory corrupted error (it works for small file).
>The Entry widget has a maximal number of character?

Not really and ecrire seems to be fine with big file. Look at
http://trac.enlightenment.org/e/browser/trunk/ecrire for a sample code
that use elm entry.
-- 
Cedric BAIL

--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Entry widget, memory corrupted

2012-10-04 Thread Cedric BAIL
On Thu, Oct 4, 2012 at 5:18 PM,   wrote:
>I write a simple text editor with the Entry widget (elementary 1.7).
>But when I use that in a "big" file (for example 300 lines),
>I have an memory corrupted error (it works for small file).
>The Entry widget has a maximal number of character?

Not really and ecrire seems to be fine with big file. Look at
http://trac.enlightenment.org/e/browser/trunk/ecrire for a sample code
that use elm entry.
-- 
Cedric BAIL

--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Entry widget, memory corrupted

2012-10-04 Thread Vincent Torri
hey

On Thu, Oct 4, 2012 at 10:18 AM,   wrote:
> Hello,
>
>I write a simple text editor with the Entry widget (elementary 1.7).
>But when I use that in a "big" file (for example 300 lines),
>I have an memory corrupted error (it works for small file).
>The Entry widget has a maximal number of character?

i have no idea about your problem, but maybe you can help with another
text editor (in very early stage) :

http://trac.enlightenment.org/e/browser/trunk/PROTO/edi/src/bin

Vincent

--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel