Crash mobileControlDelete

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ChrisMukrow
Posts: 73
Joined: Mon Nov 12, 2012 4:13 pm

Crash mobileControlDelete

Post by ChrisMukrow » Tue Feb 24, 2015 9:49 am

When calling iphoneControlDelete the app crashes on the Simulator. This code worked until LC 6.7 and 7.0. Am I doing something wrong or is this a bug?

Code: Select all

local sVideoID

on videoplayer
   
   if "ioscontrol" is among the lines of iphoneControls() then
      controlDelete
   end if
   
   iphoneControlCreate "player", "ioscontrol"
      put the result into sVideoID
   
   // Set the basic properties including visibility, rectangle and video file path
   iphoneControlSet "ioscontrol", "filename", specialFolderPath("engine") & "/Video Namibia app.m4v"
   iphoneControlSet "ioscontrol", "preserveAspect", true
   iphoneControlSet "ioscontrol", "showController", true
   iphoneControlSet "ioscontrol", "visible", true
   iphoneControlSet "ioscontrol", "fullscreen", true
   //iphoneControlSet "ioscontrol", "rect", "000,115,1024,570"
   
   // Start playing the video
   iphoneControlDo "ioscontrol", "play"
end videoplayer

on playerFinished
   controlDelete
end playerFinished

on playerLeaveFullscreen
   controlDelete
end playerLeaveFullscreen

on controlDelete
   // Delete the control
      iphoneControlDelete sVideoID
end controlDelete
And via this way it also crashes:

Code: Select all

iphoneControlDelete "ioscontrol"
Thanks,
Chris

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am
Location: Bordeaux, France

Re: Crash mobileControlDelete

Post by Dixie » Tue Feb 24, 2015 10:20 am

How about using the ID given to the control when you created it, as in...

Code: Select all

iphoneControlDelete sVideoID

ChrisMukrow
Posts: 73
Joined: Mon Nov 12, 2012 4:13 pm

Re: Crash mobileControlDelete

Post by ChrisMukrow » Tue Feb 24, 2015 10:29 am

Thanks for your help Dixie, but the same thing happens :(

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: Crash mobileControlDelete

Post by Simon » Tue Feb 24, 2015 8:17 pm

This is interesting as there is also a crash related to the new Cef browser.
I wonder if they are related.
Chris, If you can make a small stack that shows the problem repeatedly you should post it to http://quality.runrev.com/.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

ChrisMukrow
Posts: 73
Joined: Mon Nov 12, 2012 4:13 pm

Re: Crash mobileControlDelete

Post by ChrisMukrow » Wed Feb 25, 2015 1:41 pm

Thanks for your reply Simon, you can find the bug report here: http://quality.runrev.com/show_bug.cgi?id=14669

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: Crash mobileControlDelete

Post by Simon » Wed Feb 25, 2015 3:48 pm

Hi Chris,
Good news, it's already "Awaiting Build", means it will be in the next release. But they say there is a release today it might have missed that.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Klaus
Posts: 13865
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Crash mobileControlDelete

Post by Klaus » Wed Feb 25, 2015 4:07 pm

Hi all,

I always keep an eye on this: http://downloads.livecode.com/livecode/ :D


Best

Klaus

Post Reply

Return to “iOS Deployment”