MessageForm.ShowMessage


Author
Message
Geoff Hirst
Geoff Hirst
StrataFrame User (323 reputation)StrataFrame User (323 reputation)StrataFrame User (323 reputation)StrataFrame User (323 reputation)StrataFrame User (323 reputation)StrataFrame User (323 reputation)StrataFrame User (323 reputation)StrataFrame User (323 reputation)StrataFrame User (323 reputation)
Group: Forum Members
Posts: 123, Visits: 3.5K
Chaps,

Periodically I get the following exception

System.NullReferenceException: Object reference not set to an instance of an object.
   at MicroFour.StrataFrame.Messaging.MessageForm.ShowMessage(String MessageText)
   at SFB.Alarm64.Alarm64_CustomerMF.EditInstallation()

I use Messageform a lot, as it's a lot more aesthetically pleasant than Messagebox. This isn't specific to 1.6.7 as I have experienced it quite a bit over the last few versions.

Is there anyone else getting this at all?

thanks

Geoff

Replies
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Hi Geoff.

Not saying that you must to, but have you tried using the Message Editor to build your messages? You can use the editor to build them, and test while in the editor to see how they will look like. Not to say that if you use the same message in many different places in your app, you will have a single place to maintain it. After that, you just use the ShowMessageByKey() method to show it.

If you already do all this and I am talking too much, I appologize. BigGrin

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
I am not sure what you are fighting here because we too use the MessageForm in StrataFrame, DDT, as well as our medical software and many parts of each of these are obfuscated and we have never had an issue (once we get the project setup Smile).  I would have to have more details and a sample solution that reproduces the behaviors before I could give any suggestions.  But this sounds more to do with obfuscation settings than anything else.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search