Recursion Limit Reached when setting URL to filename of Imag

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
cenglish
Posts: 34
Joined: Wed May 11, 2011 6:44 pm

Recursion Limit Reached when setting URL to filename of Imag

Post by cenglish » Thu Nov 10, 2011 6:58 pm

I am working on an iPad app and depending on user selection, I have an image being set to a url link like this:

Code: Select all

put "http://www.google.com/images/70987/" into urlAddress
set the filename of image "tImage" of card "main" to urlAddress
Now this works for the most part. But the problem I'm having is simple navigating between cards with LiveCode. LiveCode crashes constantly on me when trying to work on other parts of my app. I have received the following error messages while working only with the cards containing these images:

Handler: tooltipUpdate
Handler: getUrl
Handler: ulHostNameToAddressCallback
Handler: mouseDown
Handler: updateForSelectedObjectChanged

I randomly get these handler errors with the same words:

"The handler: tooltipUpdate has reached the recursion limit of: 400000. Execution will be terminated to prevent hang."

I'm not sure what is going on here. I don't know if this is an error in my code or if this is something LiveCode is having an issue with, but everytime, LiveCode will throw one of these errors (never the same each time), hang up to the point to where I have to Force Quit the application. I am not using any kind of animation engine or anything, it's just changing the filename of an image depending on a selection.

Is anyone else running into anything like this? Any feedback would be greatly appreciated.

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Recursion Limit Reached when setting URL to filename of Imag

Post by Klaus » Thu Nov 10, 2011 7:39 pm

Hi cenglish,

I have no idea what is going on here, just tried your script and also had to kill LiveCode which did not surprise me!

BUT, on the other hand, what do you exspect when you set the filename of an image to an URL that points
to a DIRECTORY instead of a real image file on the server???
...
put "http://www.google.com/images/70987/" into urlAddress
set the filename of image "tImage" of card "main" to urlAddress
## a SLASH is definitively no valid image file suffix for LiveCode! 8)
...


Best

Klaus

cenglish
Posts: 34
Joined: Wed May 11, 2011 6:44 pm

Re: Recursion Limit Reached when setting URL to filename of Imag

Post by cenglish » Thu Nov 10, 2011 9:59 pm

That wasn't the actual link I'm trying to use. I just made up some stuff as an example. The point I was trying to make is that if you set the filename of an image to a url (a very common use I would think) of an image, LiveCode crashes. My actual link that I use has images from a database through web services.

A better example would be:

Code: Select all

put "http://edibleapple.com/wp-content/uploads/2009/04/silver-apple-logo.png" into urlAddress
set the filename of image "tImage" of card "main" to urlAddress

I'm wanting to change an image to an image from a website. Is it not possible to do this?

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: Recursion Limit Reached when setting URL to filename of Imag

Post by mwieder » Thu Nov 10, 2011 10:13 pm

Just tried your example code and it worked fine here.

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Recursion Limit Reached when setting URL to filename of Imag

Post by Klaus » Thu Nov 10, 2011 10:30 pm

Hi cenglish,
cenglish wrote:That wasn't the actual link I'm trying to use. I just made up some stuff as an example.
and a rather bad one :(
cenglish wrote:The point I was trying to make is that if you set the filename of an image to a url (a very common use I would think) of an image, LiveCode crashes. My actual link that I use has images from a database through web services.
...
I'm wanting to change an image to an image from a website. Is it not possible to do this?
There must be something else going on***, I also use this very often and never had problems setting the filename of an image to an internet url!

*** "tooltipUpdate" seems to be an internal LiveCode command!


Best

Klaus

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: Recursion Limit Reached when setting URL to filename of Imag

Post by mwieder » Thu Nov 10, 2011 10:37 pm

Where does that chunk of code live? It's not in the image itself, is it?

Post Reply