private void CreateAndThrowException()
        {
            int numberOfMessages = 0;

            numberOfMessages = MohidLandEngineDLLAccess.GetNumberOfMessages();
            string message = "Error Messages from MOHID Land Engine";

            for (int i = 0; i < numberOfMessages; i++)
            {
                int           n = i;
                StringBuilder messageFromCore = new StringBuilder("                                                        ");
                MohidLandEngineDLLAccess.GetMessage(ref n, messageFromCore, (uint)messageFromCore.Length);
                message += "; ";
                message += messageFromCore.ToString().Trim();
            }
            throw new Exception(message);
        }