I am lost on this one.  I load the crystal reports viewer on a form by
itself.  If it is the first time the DLLs are loaded into memory then
if I move my mouse in circles really fast Crystal Reports throws a
null reference exception.  If, however, I keep the mouse still then
the report loads without issue.

My stacktrace is below.  Any ideas how to solve or work around this
issue?

Steve
------------------STACK TRACE-----------------
A first chance exception of type 'System.NullReferenceException'
occurred in CrystalDecisions.Windows.Forms.dll
System.Transactions Critical: 0 : <TraceRecord xmlns="http://
schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord"
Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/
TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/
Unhandled</TraceIdentifier><Description>Unhandled exception</
Description><AppDomain>APP.vshost.exe</
AppDomain><Exception><ExceptionType>System.NullReferenceException,
mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Object
reference not set to an instance of an object.</Message><StackTrace>
at
CrystalDecisions.Windows.Forms.PageControl.OnMouseMove(MouseEventArgs
e)
   at System.Windows.Forms.Control.WmMouseMove(Message&amp;amp; m)
   at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message&amp;amp;
m)
   at System.Windows.Forms.ContainerControl.WndProc(Message&amp;amp;
m)
   at System.Windows.Forms.UserControl.WndProc(Message&amp;amp; m)
   at
CrystalDecisions.Windows.Forms.PageControl.WndProc(Message&amp;amp; m)
   at
System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp;
m)
   at
System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp;
m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr
hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at
System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp;amp;
msg)
   at
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32
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.RunDialog(Form form)
   at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
   at System.Windows.Forms.Form.ShowDialog()
   at TerritorialHousingSystem.ReportsPicker.btnRun_Click(Object
sender, EventArgs e) in C:\~CODE DIR~\ReportsPicker.vb:line 62
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message&amp;amp; m,
MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.ButtonBase.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.Button.WndProc(Message&amp;amp; m)
   at
System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp;
m)
   at
System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp;
m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr
hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at
System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp;amp;
msg)
   at
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32
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 MainMDI.IMS.Logon.Main() in C:\~CODE DIR~\Logon.vb:line 0
   at System.AppDomain._nExecuteAssembly(Assembly assembly, String[]
args)
   at System.AppDomain.nExecuteAssembly(Assembly assembly, String[]
args)
   at System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel)
   at System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly()
   at
System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext
activationContext, String[] activationCustomData)
   at
System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext
activationContext)
   at System.Activator.CreateInstance(ActivationContext
activationContext)
   at
Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()</
StackTrace><ExceptionString>System.NullReferenceException: Object
reference not set to an instance of an object.
   at
CrystalDecisions.Windows.Forms.PageControl.OnMouseMove(MouseEventArgs
e)
   at System.Windows.Forms.Control.WmMouseMove(Message&amp;amp; m)
   at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message&amp;amp;
m)
   at System.Windows.Forms.ContainerControl.WndProc(Message&amp;amp;
m)
   at System.Windows.Forms.UserControl.WndProc(Message&amp;amp; m)
   at
CrystalDecisions.Windows.Forms.PageControl.WndProc(Message&amp;amp; m)
   at
System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp;
m)
   at
System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp;
m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr
hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at
System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp;amp;
msg)
   at
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32
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.RunDialog(Form form)
   at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
   at System.Windows.Forms.Form.ShowDialog()
   at TerritorialHousingSystem.ReportsPicker.btnRun_Click(Object
sender, EventArgs e) in C:\Projects\HC-IMS\TerritorialHousingSystem
\Reports\ReportsPicker.vb:line 62
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message&amp;amp; m,
MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.ButtonBase.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.Button.WndProc(Message&amp;amp; m)
   at
System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp;
m)
   at
System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp;
m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr
hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at
System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp;amp;
msg)
   at
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32
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 MainMDI.IMS.Logon.Main() in C:\~CODE DIR~\Logon.vb:line 0
   at System.AppDomain._nExecuteAssembly(Assembly assembly, String[]
args)
   at System.AppDomain.nExecuteAssembly(Assembly assembly, String[]
args)
   at System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel)
   at System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly()
   at
System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext
activationContext, String[] activationCustomData)
   at
System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext
activationContext)
   at System.Activator.CreateInstance(ActivationContext
activationContext)
   at
Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()</ExceptionString></
Exception></TraceRecord>

-- 
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net

Reply via email to