empty revErrorDisplay

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jameshale
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 474
Joined: Thu Sep 04, 2008 6:23 am
Location: Melbourne Australia

empty revErrorDisplay

Post by jameshale » Wed Sep 29, 2021 12:39 am

Hi everyone,
A stack I am working on opens and launches fine with the exception of displaying an empty "revErrrorDisplay" window each time I open it in the IDE.
So, obviously, LC doesn't lie something in my script but fails to inform me as to what it doesn't like.
Any ideas on how I can find out?
Curious,

James

dalkin
Posts: 176
Joined: Wed Jul 04, 2007 2:32 am
Location: Blackheath, Australia
Contact:

Re: empty revErrorDisplay

Post by dalkin » Wed Sep 29, 2021 2:39 am

Could you post your stack script and/or the card script that is activated on opening?
If we're treading on thin ice, well you might as well dance.

jameshale
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 474
Joined: Thu Sep 04, 2008 6:23 am
Location: Melbourne Australia

Re: empty revErrorDisplay

Post by jameshale » Wed Sep 29, 2021 3:08 am

this is from the stac script
on PREOpenStack
local theallowed
if the environment is "mobile" then
beep
--Portrait , Portrait Upside Down , Landscape Left, Landscape Right are the 4
---Parameters to be passed in the function iphoneSetAllowedOrientations
put "portrait,portrait upside down,landscape left,landscape right" into theallowed
-- Function Call
mobileSetAllowedOrientations theallowed
put the screenRect into srect
end if
end PREOpenStack
interestingly this is a preopenstack rather than openstack as I couldn't get the openstack to trigger!!

dalkin
Posts: 176
Joined: Wed Jul 04, 2007 2:32 am
Location: Blackheath, Australia
Contact:

Re: empty revErrorDisplay

Post by dalkin » Wed Sep 29, 2021 3:49 am

Smarter minds than mine will answer this but could the problem be the limitations noted in the dictionary?

"Note: Due to the limitation of the Android operating system, landscape left and portrait upside-down are only supported on Android 2.3 and later.

Note: The iPhone X model doesn’t currently support upside-down portrait mode. Other Apple iPad and iPhone devices continue to support both standard and upside-down portrait and landscape orientations.
If we're treading on thin ice, well you might as well dance.

jameshale
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 474
Joined: Thu Sep 04, 2008 6:23 am
Location: Melbourne Australia

Re: empty revErrorDisplay

Post by jameshale » Wed Sep 29, 2021 4:02 am

yes but this is occurring in the IDE (not on mobile). BTW it will be iOS only.

SparkOut
Posts: 2839
Joined: Sun Sep 23, 2007 4:58 pm

Re: empty revErrorDisplay

Post by SparkOut » Wed Sep 29, 2021 7:25 am

It is hard to surmise, but I see you are declaring theallowed variable locally, but not srect, which is presumably a script local variable. If you have strict compilation turned on, then I would check the script to ensure srect is properly declared.
But that would not really explain why you get an empty error dialog on running, you would normally get a failed compilation with an error shown in the script editor.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7214
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: empty revErrorDisplay

Post by jacque » Wed Sep 29, 2021 5:10 pm

FWIW, I've seen the empty dialog occasionally too. It never interferes with my code, and I get the feeling it's an internal LC error that clears itself after a moment.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

elanorb
Livecode Staff Member
Livecode Staff Member
Posts: 516
Joined: Fri Feb 24, 2006 9:45 am

Re: empty revErrorDisplay

Post by elanorb » Wed Sep 29, 2021 6:30 pm

I have seen this too, you can sometimes see the actual error by setting the global gRevDevelopment variable to true from the Message Box before opening your stack.

Elanor
Elanor Buchanan
Software Developer
LiveCode

jameshale
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 474
Joined: Thu Sep 04, 2008 6:23 am
Location: Melbourne Australia

Re: empty revErrorDisplay

Post by jameshale » Thu Sep 30, 2021 12:12 am

@Jacque, I wish
@Elanor,
setting gRevDevelopment true and relaunching stack gave me these errors:
executing internal 9:00:16 AM
Type Handler: error in statement
Object revidelibrary
Line go stack pFilePath
Hint revIDEOpenStack

executing at 9:00:15 AM
Type Handler: can't find handler
Object ACIM Cards
Line nextcard
Hint nextcard

The 2nd of which was in my script (I had moved the handler to the card script but forgot it was also called in the stack script!)

I corrected this and relaunched.
No errors!

So I have no idea as to the cause of the error in revIDEOpenStack.

Anyway thanks for the hint, I will keep it in mind for future reference.

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”