MessageBox Closes Itself?

Hello,

Have you ever had the messagebox close itself? For some reason, it shows as a momentary flash on the screen – and then disappears without allowing the user time to read it. Hmm. Ideas?

Byron

Has someone been tapping repeatedly on ENTER?
Has another window popped up in front of it?

No, I wish it was that simple. It just shows as a momentary flash without any new windows (or anything like that) happening.

What I’m doing:
Crypto.RSADecrypt()

If the decryption is success, show a message box.
If not, show a message box.

If successful, the message box shows without any issue.
If not success, the message box blinks for a slit second and poof, it’s gone.

It has me going, “Huh?” LOL

Interesting! If I put a second MessageBox() after the first one, the second one appears without issue. Hmm. Looks like I might of found a bug.

[quote]If the decryption is success, show a message box.
If not, show a message box.

If successful, the message box shows without any issue.
If not success, the message box blinks for a slit second and poof, it’s gone.[/quote]

so in a new project, if you copy that tiny bit of code and replace ‘if sucessful’ by ‘if value of local boolean’
and just these two messageboxes, does it still happen?
if… does it happen away from the decryption routine?

Are you catching the exception?

See here
http://documentation.xojo.com/api/cryptography/crypto.html#crypto-rsaencrypt
Code example is incomplete. If the key is wrong an exception may be raised, it could an issue maybe with showing the dialog?