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
Image Export error with upgrade
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Image Export error with upgrade
Hi Ty,
why not quickly check the snytax in the dictionary?
And always check for existing files/folders:
But LC should NOT crash in that case! What version are you using?
Please report this as a bug!
Best
Klaus
why not quickly check the snytax in the dictionary?

Code: Select all
...
export image "FacePic" to FILE (tP & "myimages" & tTime2 &".jpg") as JPEG
...
Code: Select all
...
put specialFolderPath("documents") & "/myimages" into tFolder
if there is not a folder tFolder then
create folder tFolder
end if
...
Please report this as a bug!
Best
Klaus
-
- Posts: 151
- Joined: Sat Aug 25, 2012 1:14 am
Re: Image Export error with upgrade
LiveCode 7.0.0-dp-5 Build 10009
I will report it as a bug.
Thank you
Ty
I will report it as a bug.
Thank you
Ty
-
- Posts: 151
- Joined: Sat Aug 25, 2012 1:14 am
Re: Image Export error with upgrade
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
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
Re: Image Export error with upgrade
Thank you, but that does not tell me anything 
