EldoS | Feel safer!

Software components for data protection, secure storage and transfer

MimiMaker: System.NullReferenceException was unhandled

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#13713
Posted: 06/18/2010 08:46:43
by Marcel Talamini (Standard support level)
Joined: 01/30/2010
Posts: 15

I’m struggling with the MimeMaker code sample.

What I do is:
1.start debugging (F5) in VS2010 .NET4
2.choose in the filemenu “Assemble and Save” (F9)

An exception follows at line:

int res = msg.AssembleMessage(sm,
// Charset of message:
"utf-8",
// HeaderEncoding
SBMIME.TElHeaderEncoding.heBase64, //variants: he8bit | heQuotedPrintable | heBase64
// BodyEncoding
"base64", // variants: '8bit' | 'quoted-printable' | 'base64'
// AttachEncoding
"base64", // variants: '8bit' | 'quoted-printable' | 'base64'
false
);

Exception details:

System.NullReferenceException was unhandled
Message=Object reference not set to an instance of an object.
Source=SecureBlackbox.MIME
StackTrace:
at SBMIME.TElMessagePart.internalAssemble(Stream Destination, Byte[] Charset, TElHeaderEncoding HeaderEncoding, Byte[] BodyEncoding, Byte[] AttachEncoding, String AText, Boolean bDataIsText, Boolean bAssembleSource)
at SBMIME.TElPlainTextPart.Assemble(Stream Destination, Byte[] Charset, TElHeaderEncoding HeaderEncoding, Byte[] BodyEncoding, Byte[] AttachEncoding, Boolean bAssembleSource)
at SBMIME.TElMessage.AssembleMessage(Stream Destination, Byte[] Charset, TElHeaderEncoding HeaderEncoding, Byte[] BodyEncoding, Byte[] AttachEncoding, Boolean bAssembleSource)
at SBMIME.TElMessage.AssembleMessage(Stream Destination, String Charset, TElHeaderEncoding HeaderEncoding, String BodyEncoding, String AttachEncoding, Boolean bAssembleSource)
at MimeMaker.Form1.menuItem_Assemble_Click(Object sender, EventArgs e) in C:\Program Files\EldoS\SecureBlackbox.NET_40\Samples\C#\MIMEBlackbox\Maker\Form1.cs:line 1009
at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
at System.Windows.Forms.MenuItem.MenuItemData.Execute()
at System.Windows.Forms.Command.Invoke()
at System.Windows.Forms.Command.DispatchID(Int32 id)
at System.Windows.Forms.Control.WmCommand(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at MimeMaker.Form1.Main() in C:\Program Files\EldoS\SecureBlackbox.NET_40\Samples\C#\MIMEBlackbox\Maker\Form1.cs:line 822
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
#13714
Posted: 06/18/2010 09:09:33
by Eugene Mayevski (EldoS Corp.)

Moved to HelpDesk.


Sincerely yours
Eugene Mayevski

Reply

Statistics

Topic viewed 784 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!