Welcome, Guest. Please login or register.
Did you miss your activation email?
05/21/12, 03:03
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  V2 Components (Flash MX 2004 - Flash 8) (Moderators: vesa kortelainen, Ronald Wernecke, Jorge Solis, ..:: Mazhar Hasan ::.., papachan)
| | |-+  256 Recursion error
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 Print
Author Topic: 256 Recursion error  (Read 5708 times)
hayce
Server what's that
*
Posts: 29



View Profile WWW Email
« on: 10/04/04, 02:48 »

heres the error message:

256 levels of recursion were exceeded in one action list.
This is probably an infinite loop.
Further execution of actions has been disabled in this movie.

I have a main swf. Into this I load the admin swf, which contains the nav and empty clips. Into these empty clips I load other swf's depending on function EG guestbook, news, site content, login..

Two of these swf's have the datagrid component and the xml connector in them. The other has no components.

When I load the swf with component by itself all is good. Even when I load one with components and one without components its still good. I can chop and change between the two fine.

What I cant do is load up one with components and then the other with components. When I do it throws the above error and everything goes mental..

I have the container clips on seperate layers and frames.
I dont have any loops in either swf. All they are doing is populating the grid from XML.
The grid and connector components have unique instance names

For a check I commented all code in both swf's apart from a stop(); in the first frame and this error still occured..

What is this all about and how do I fix it. Any and all suggestions would be great as im at a loss

Cheers Hayce
Logged
hayce
Server what's that
*
Posts: 29



View Profile WWW Email
« Reply #1 on: 10/04/04, 04:54 »

I just commented everything besides one stop(); each and it still did it.
So...I saved the file as under a different name deleted the grid component, xml connector and dataset and no error this time...

Ill try and redo my grid business and see what happens
Logged
hayce
Server what's that
*
Posts: 29



View Profile WWW Email
« Reply #2 on: 10/04/04, 04:56 »

OK so I tried the data connection wizard again..no joy keeps throwing error msg.

Went thorugh and deleted one component at a time. It seems the dataset is breaking things..  Shocked

I am using the data connection wizard, does this have any known bugs like this???

Is it better to configure the components with out the wizard?
Logged
hayce
Server what's that
*
Posts: 29



View Profile WWW Email
« Reply #3 on: 10/04/04, 18:48 »

 Angry aargh this freakin thing is killing me and beating up my mouse isnt fixing it either.....

Anyone willing to take a look at some .fla's for me??
Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #4 on: 10/05/04, 17:24 »

Hi Hayce,
keep cool.

Somehow you have a infinite loop in your construction.

It is important, that you have one section, where you do the initialisation, which will never executed again.
This could be done by using a flag variable to be set, or by putting it into an extra frame, which will never be addressed.

If you have data connectors, make sure they are named differently.

If you want to know what happens, insert trace commands in certain positions, where you want to control the code.
Logged

happy flashing
Cool
Ronald
hayce
Server what's that
*
Posts: 29



View Profile WWW Email
« Reply #5 on: 10/05/04, 18:06 »

Im cool Im cool the mouse will live another day Grin

What i dont get is that when all the code in each file with the grid in it is commented (besides a stop(); each ) this still happens.
My dataset, XML connector and datagrid are all named differently E.G mygridDataGrid and contentDataGrid etc

Also I am loading these files into empty clips. These clips are on different layers and named differently. They also dont overlap each other on the timeline and when you prees the button for that particular file Im using unloadMovie to unload the other file with the datagrid.

So to me i wouldnt think that the two files would be conflicting each other. I think this because the files work fine independantly and even with other files that dont contain components it only happens when going between them.

The files are populated from a XML array that is pulled by PHP from a MySql databaase. There is a DB connection in each file but they are connecting to different, unlinked tables in that DB.

I have trace commands but nothing gets a chance to run the error happens straight off

Im still getting know where with this thing but thank you for your response Ronald...
Logged
Joe Martinez
Server what's that
*
Posts: 10



View Profile Email
« Reply #6 on: 10/11/04, 15:58 »

I have the same problem man. I am working on a big commercial project and have to get this fixed. I'll let you know when I've got it.

In the meantime, if you could tell me more about what you're doing w/ the xml connector , dataset... how specifically are you retrieving data, where is the xconn triggered? etc.

I'll keep ya posted.
Logged
hayce
Server what's that
*
Posts: 29



View Profile WWW Email
« Reply #7 on: 10/11/04, 17:14 »

Hey Joe!

I thought I was the only one  Grin

Ill send you all the files mate..just give me an address, Id very much appreciate you looking at them
Logged
Joe Martinez
Server what's that
*
Posts: 10



View Profile Email
« Reply #8 on: 10/11/04, 17:54 »

I am having so much trouble figuring out the problem b/c I am not using recursive functions! It has to be in either the xml connector or the dataset. I am strongly suspecting the xml connector. I am going to try and go home and use ASV to see if I can diagnose the prob.

You can send your files to jrm02t AT gmail DOT com and that way I'll have your email.

I'll keep ya posted.
Logged
hayce
Server what's that
*
Posts: 29



View Profile WWW Email
« Reply #9 on: 10/11/04, 18:08 »

Just sent them for you..
Logged
Joe Martinez
Server what's that
*
Posts: 10



View Profile Email
« Reply #10 on: 10/11/04, 22:43 »

The bad news is I haven't yet solved this.

the good news is our problems are, in fact, the same.  So when I solve mine then I've solved yours. The common thing we are doing is loading a movie (not in a level) with an xml connector and dataset when another movie w/ xml connector and dataset has already been loaded AND removed.

The problem does not occur, for me, until a clip with xml conn and dataset has been removed and then another is loaded.

I'm wondering if this is some sort of init problem with the xml connector. That's my suspicion. i'll keep digging.
Logged
Joe Martinez
Server what's that
*
Posts: 10



View Profile Email
« Reply #11 on: 10/11/04, 22:48 »

OK, it seems to be the dataset component that causes the problem.... It could be the component itself or something to do with bindings to it. I'll keep working...
Logged
Joe Martinez
Server what's that
*
Posts: 10



View Profile Email
« Reply #12 on: 10/11/04, 22:56 »

OK, so this really seems to be a component bug! Look at this thread here:

http://groups.google.com/groups?hl=en&lr=&c2coff=1&safe=off&threadm=BC4326D6.143BF%25ramos%40citruslab.com&rnum=1&prev=/groups%3Fq%3D256%2520levels%2520recursion%2520dataset%26hl%3Den%26lr%3D%26c2coff%3D1%26safe%3Doff%26sa%3DN%26tab%3Dwg

Now we have to find a workaround.
Logged
hayce
Server what's that
*
Posts: 29



View Profile WWW Email
« Reply #13 on: 10/11/04, 23:30 »

Certainly does seem like a bug in the component  Shocked

I noticed that If I placed one of my empty clips inside the other (say content in news) and set a variable on press of the button (to tell which on it was) and loaded the corrosponding clip it worked without the 256 error. However this is far from perfect as once Im down in the lower clip I cant get out of it again...
Logged
Joe Martinez
Server what's that
*
Posts: 10



View Profile Email
« Reply #14 on: 10/12/04, 08:23 »

My app has a LOT of loaded modules so this will take me a while to try but for you... try this:
in any of your swfs that get loaded in the main swf: import for runtime sharing the dataset, datagrid, (and any list based components used. e.g. combobox, list, tree)
Then, obviously, export them for runtime sharing from the main swf.

I have a product review meeting this morning but will check back around 11:30 EST.
Logged
Pages: [1] 2 Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!