[Gambas-user] Stack Overflow

nando nando_f at ...951...
Thu Jun 16 00:17:10 CEST 2005


Is it because

 LAST.value = TRUE 

actually causes the event to happen  because 
you are toggling the button in code..so the
event HAS to happen.

You would definitely get the stack overflow.

To help test this..
Make a 
PUBLIC counter as INTEGER  at the beginning of the class

inside the event add

INC counter
PRINT counter

..and see how many times it prints

-Fernando



---------- Original Message -----------
From: PaquitoSoft <cloroetilo at ...626...>
To: gambas-user at lists.sourceforge.net
Sent: Thu, 16 Jun 2005 00:05:33 +0200
Subject: [Gambas-user] Stack Overflow

> Hi all!
> I get an error in my program and it suggested me to tell you about 
> it. The message is - "Program stopped unexpectedly sending signal #11".
> At console I get this information:
> 	Error: StackOverflow
> 	EXEC_leave != T_FUNCTION
> 	segment violation
> 
> Now I tell you where this error come from...
> I'm using four toggleButton controls in a form, They are inside a frame.
> What I want to do is to have only one with value=true, so I made a
> lilttle process to handle this. All the button belog to a group 
> called "toggle", This is the code for the group:
> 
> PUBLIC SUB toggle_Click()
> 
>   toggleDia.Value = FALSE
>   toggleSemana.Value = FALSE
>   toggleMes.Value = FALSE
>   toggleAnho.Value = FALSE
>   LAST.value = TRUE
> 
>   CATCH
>     PRINT "Error -> " & Error.Text
> 
> END
> 
> I get the error whit LAST.value = TRUE
> I try with different sub processes, one for each togglebutton with 
> the same code, replacing keyword LAST by the exact togglebutton name 
> and I got the same error. So... anybody can tell me what's wrong here???
> 
> By the way... I'm working with tableView Controls and I saw that
> documentation is uncompleted. Is there any way to set data into it??
> I get the message that is read only...
> 
> Thanks a lot
> 
> -- 
> El tiempo es un gran profesor. Desafortunadamente, mata a todos sus
> alumnos.
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration 
> Strategies from IBM. Find simple to follow Roadmaps, straightforward 
> articles, informative Webcasts and more! Get everything you need to 
> get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
------- End of Original Message -------





More information about the User mailing list