NullReferenceException was not handled.
Object reference is not configured for the object instance.
says the error.
mi1.cs
namespace mip
{
public enum enumMessageType
{
mtA, mtB, mtC, ...
}
afterthought
Form1.cs
namespace mipTest
{
public partial class Form 1:Form
{
private void btnInsert_Click(object sender, EventArgse)
{
QueueInfo qi = new QueueInfo();
qi.CommandInfo.MessageType=enumMessageType.mtA;←This is where the error occurs.
afterthought
Do you have any clue to the solution?
Thank you for your cooperation.
Run debugs, break the line where the error occurs, and look for null.
As it looks, the CommandInfo member variable in the QueueInfo class is likely not initialized.
549 PHP ssh2_scp_send fails to send files as intended
546 Understanding How to Configure Google API Key
538 Uncaught (inpromise) Error on Electron: An object could not be cloned
547 Who developed the "avformat-59.dll" that comes with FFmpeg?
548 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
© 2024 OneMinuteCode. All rights reserved.