empty revErrorDisplay
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 474
- Joined: Thu Sep 04, 2008 6:23 am
- Location: Melbourne Australia
empty revErrorDisplay
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
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
Re: empty revErrorDisplay
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.
-
- VIP Livecode Opensource Backer
- Posts: 474
- Joined: Thu Sep 04, 2008 6:23 am
- Location: Melbourne Australia
Re: empty revErrorDisplay
this is from the stac script
interestingly this is a preopenstack rather than openstack as I couldn't get the openstack to trigger!!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
Re: empty revErrorDisplay
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.
"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.
-
- VIP Livecode Opensource Backer
- Posts: 474
- Joined: Thu Sep 04, 2008 6:23 am
- Location: Melbourne Australia
Re: empty revErrorDisplay
yes but this is occurring in the IDE (not on mobile). BTW it will be iOS only.
Re: empty revErrorDisplay
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.
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.
-
- VIP Livecode Opensource Backer
- Posts: 7258
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: empty revErrorDisplay
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
HyperActive Software | http://www.hyperactivesw.com
Re: empty revErrorDisplay
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
Elanor Buchanan
Software Developer
LiveCode
Software Developer
LiveCode
-
- VIP Livecode Opensource Backer
- Posts: 474
- Joined: Thu Sep 04, 2008 6:23 am
- Location: Melbourne Australia
Re: empty revErrorDisplay
@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.
@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.