Page 1 of 1
Referenced images crashing device, not simulator
Posted: Mon Jun 11, 2012 5:32 pm
by ctflatt
Hello, everyone.
I have posted this on the developer's list, but thought I would field it here, as well.
I am encountering issues with using referenced images in a stack.
I have used this method before (LC 4.6.4?), but am having issues loading referenced images with LC 5.5.
There is a sample stack link below, if anyone can verify.
Many thanks!
:Todd
File available at:
https://files.me.com/ctflatt/6a79dt
Re: Referenced images crashing device, not simulator
Posted: Mon Jun 11, 2012 5:55 pm
by Dixie
Todd..
this works...
Code: Select all
set the filename of image "image" to specialFolderPath("engine") & slash & "links" & slash & "images" & slash & "13848-1.jpg"
be well
Dixie
Re: Referenced images crashing device, not simulator
Posted: Mon Jun 11, 2012 6:12 pm
by Klaus
Hi Todd,
yep, as Dixie says
And putting "binfile:" into the filename is not the best idea
Best
Klaus
Re: Referenced images crashing device, not simulator
Posted: Mon Jun 11, 2012 6:34 pm
by ctflatt
Thanks all!
I love chalking those up to human error!
When should "binfile:" or "file:" be specified?
Re: Referenced images crashing device, not simulator
Posted: Mon Jun 11, 2012 6:38 pm
by Klaus
Hi Todd,
ctflatt wrote:When should "binfile:" or "file:" be specified?
when you are dealing with FILES!
Text files = file
All other (binary) files = binfile
Example:
...
put url("file:test.TXT") into fld 1
...
put url("binfile" & specialfolderpath("desktop") & "/my_image.jpg") into image 2
...
Best
Klaus
Re: Referenced images crashing device, not simulator
Posted: Mon Jun 11, 2012 6:51 pm
by ctflatt
Thanks, Klaus.
I thought I was dealing with files...
Setting the filename of an image to a file seems like dealing with files to me?
I was working with images, and chose the "binfile:" type correctly.
I guess you mean the distinction may be when you're loading the contents of a file for manipulation.
Thanks, again.
I really do appreciate it.
:Todd
ps... it's been awhile since I've posted... I missed everyone

Re: Referenced images crashing device, not simulator
Posted: Mon Jun 11, 2012 8:21 pm
by Klaus
Hi Todd,
well, although "the filename" of an image IS of course a file, "the filename" is officially a PROPERTY of an image
Best
Klaus