Bug with message Box please test and confirm

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
mrcoollion
Posts: 709
Joined: Thu Sep 11, 2014 1:49 pm
Location: The Netherlands

Bug with message Box please test and confirm

Post by mrcoollion » Fri Jun 29, 2018 9:24 am

Hi LC enthusiasts,

I seem to have stumbled against a very annoying bug in LC 9.0.
if i by mistake do the following statement 'put "xyz text" tMsgVar' (I forgot the into by purpose).
From that moment on the Msg Box keeps popping up as wel as a message box without any action buttons.

To show you what I mean I have made a simple stack for you to test.
BugPutAndMsgBox.zip
Test Bug with message box
(946 Bytes) Downloaded 155 times
Please let me know if you encounter the same problem in LC 9.0 and on what platform?

Regards,

Paul

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9249
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Bug with message Box please test and confirm

Post by richmond62 » Fri Jun 29, 2018 10:04 am

try1.png
-
Nothing unduly alarming "over here": Xubuntu Linux 18.04

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

Re: Bug with message Box please test and confirm

Post by Klaus » Fri Jun 29, 2018 10:07 am

Same here LC 9, macOS 10.13.5
I get the script error but that's it, nothing unususal happens after that.
I can also save the stack whenever I want to.

mrcoollion
Posts: 709
Joined: Thu Sep 11, 2014 1:49 pm
Location: The Netherlands

Re: Bug with message Box please test and confirm

Post by mrcoollion » Fri Jun 29, 2018 10:15 am

Thanks..... now lets wait for someone to test on Windows 10 with LC 9.0 ....

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Re: Bug with message Box please test and confirm

Post by sphere » Fri Jun 29, 2018 12:11 pm

LC9.0 and win10

Geen probleem.

The messagebox comes up as normal and an Error:
button "Button": execution error at line 4 (Handler: can't find handler) near "tMsg", char 5

Rename your preferences file. Then restart LC. try it again.

mrcoollion
Posts: 709
Joined: Thu Sep 11, 2014 1:49 pm
Location: The Netherlands

Re: Bug with message Box please test and confirm

Post by mrcoollion » Fri Jun 29, 2018 12:25 pm

Where is the preferences file situated ?
Can't find it.....

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

Re: Bug with message Box please test and confirm

Post by Klaus » Fri Jun 29, 2018 2:01 pm

Open the message box:
put the filename of stack "revpreferences"

Et voila! :D

mrcoollion
Posts: 709
Joined: Thu Sep 11, 2014 1:49 pm
Location: The Netherlands

Re: Bug with message Box please test and confirm

Post by mrcoollion » Fri Jun 29, 2018 3:54 pm

Great tip.

Renamed the file. Got a new one after restart of LC. Tested my test stack
And ..... stil got the issue....... @(^%$#()*&@^ :oops:
I will reinstall LC9.0 to see if that helps. I will post the results...

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Re: Bug with message Box please test and confirm

Post by sphere » Fri Jun 29, 2018 7:43 pm

Ok that's strange indeed.
With some weird faults, which you normally don't have, this can be a solution.

I had it a few times, but mostly when a new version was installed.

mrcoollion
Posts: 709
Joined: Thu Sep 11, 2014 1:49 pm
Location: The Netherlands

Re: Bug with message Box please test and confirm

Post by mrcoollion » Mon Jul 02, 2018 9:16 pm

An update on the problem.

After reinstalling a clean LC9.0 version there was no problem :D .
But I always want to know the root cause of the problem so I kept on testing until I got the issue back.

I got this issue back when I set the path for User Extensions. I seems that there is a problem with one of the items in that folder or subfolders. I do not know what item but I will keep on testing by process of elimination one by one ......

Keep you posted....
Last edited by mrcoollion on Tue Jul 03, 2018 6:08 am, edited 1 time in total.

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Re: Bug with message Box please test and confirm

Post by sphere » Mon Jul 02, 2018 9:33 pm

Top!=Great!

mrcoollion
Posts: 709
Joined: Thu Sep 11, 2014 1:49 pm
Location: The Netherlands

Re: Bug with message Box please test and confirm

Post by mrcoollion » Tue Jul 03, 2018 6:19 pm

Seems to be caused by any of the two script-only stacks i developed myself I have put in the plugins folder as an external. I have no idea what is going wrong.
Maybe I did not follow the correct setup/procedure for using my own script-only stack as an external?
Any pointers on where to find information ? because I do need them!

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

Re: Bug with message Box please test and confirm

Post by jacque » Wed Jul 04, 2018 5:22 pm

Script only stacks probably won't work as plugins. LC writes some custom properties to plugin stacks, but script only stacks don't save any custom properties when they close (which is why they are called "script only").

You can try making a normal stack that opens the script only stacks, and use the normal one as the plugin. Or easier, just make the script only stacks into normal ones.

A third way would be to put the scripts into a couple of buttons in the plugin stack and when it opens, insert the button scripts as backscripts. I've been doing this for years for my custom developer handlers.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

mrcoollion
Posts: 709
Joined: Thu Sep 11, 2014 1:49 pm
Location: The Netherlands

Re: Bug with message Box please test and confirm

Post by mrcoollion » Wed Jul 04, 2018 8:44 pm

Thanks Jacque,

If will take your advise and run with it.
:mrgreen:

Post Reply

Return to “Talking LiveCode”