Image Export error with upgrade

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
tyarmsteadBUSuSfT
Posts: 151
Joined: Sat Aug 25, 2012 1:14 am

Image Export error with upgrade

Post by tyarmsteadBUSuSfT » Sat May 24, 2014 4:10 pm

Today I upgraded to the new release. Now when my app gets to the ...Export image...:
.......
set the folder to specialFolderPath("documents")
create folder "myimages"
put specialFolderPath("documents") &slash&"myimages"&slash into tP
set the JPEGQuality to 100
export image "FacePic" to URL ("file:" & tP&"myimages"&tTime2&".jpg") as JPEG
put tP&"myimages"&tTime2&".jpg" into item 3 of line tNextFileNumber of tSavedFile.....

it shuts down LiveCode. It worked prior to me upgrading.
Thank you
Ty

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

Re: Image Export error with upgrade

Post by Klaus » Sat May 24, 2014 4:21 pm

Hi Ty,

why not quickly check the snytax in the dictionary? 8)

Code: Select all

...
export image "FacePic" to FILE (tP & "myimages" & tTime2 &".jpg") as JPEG
...
And always check for existing files/folders:

Code: Select all

...
put specialFolderPath("documents") & "/myimages" into tFolder
if there is not a folder tFolder then 
  create folder tFolder
end if
...
But LC should NOT crash in that case! What version are you using?
Please report this as a bug!


Best

Klaus

tyarmsteadBUSuSfT
Posts: 151
Joined: Sat Aug 25, 2012 1:14 am

Re: Image Export error with upgrade

Post by tyarmsteadBUSuSfT » Sat May 24, 2014 4:25 pm

LiveCode 7.0.0-dp-5 Build 10009
I will report it as a bug.
Thank you
Ty

tyarmsteadBUSuSfT
Posts: 151
Joined: Sat Aug 25, 2012 1:14 am

Re: Image Export error with upgrade

Post by tyarmsteadBUSuSfT » Sat May 24, 2014 4:38 pm

This is part of the error from Apple:
Process: LiveCode-Commercial [15142]
Path: /Applications/LiveCode 7.0 (dp 5).app/Contents/MacOS/LiveCode-Commercial
Identifier: com.runrev.livecode
Version: 7.0.0.10007 [DP 3] (7.0.0.10007 [DP 3])
Code Type: X86 (Native)
Parent Process: launchd [144]
Responsible: LiveCode-Commercial [15142]
User ID: 501

Date/Time: 2014-05-24 11:34:56.005 -0400
OS Version: Mac OS X 10.9.2 (13C1021)
Report Version: 11
Anonymous UUID: 290EC02F-B948-2815-88C2-AF7E1DD26FAF

Sleep/Wake UUID: 3F10744E-ECAA-4037-B0F1-AEA61B613BA3

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000000003ea

VM Regions Near 0x3ea:
--> __PAGEZERO 0000000000000000-0000000000001000 [ 4K] ---/--- SM=NUL /Applications/LiveCode 7.0 (dp 5).app/Contents/MacOS/LiveCode-Commercial
__TEXT 0000000000001000-0000000000a3f000 [ 10.2M] r-x/rwx SM=COW /Applications/LiveCode 7.0 (dp 5).app/Contents/MacOS/LiveCode-Commercial

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

Re: Image Export error with upgrade

Post by Klaus » Sat May 24, 2014 5:40 pm

Thank you, but that does not tell me anything :D

Post Reply