Page 1 of 1

System.NullReferenceException (VFP SP2)

Posted: Mon Mar 18, 2013 2:44 pm
by DMI
Hi all,
I get in the last time under VFP SP2 often (not always) the following error: System.NullReferenceException
Objects that I use:
- GdPicture.NET 9.4.2 (Ultimate)
- GdPicture9.ThumbnailEx (ThumbnailEx there was also no error)
- GdPicture9.GdViewer

Often it happens in code:

Code: Select all

THISFORM.txtSetItemsSizeW.VALUE=140
THISFORM.txtSetItemsSizeH.VALUE=200
THISFORM.txtSetItemsSpacingH.VALUE=260
THISFORM.txtSetItemsSpacingV.VALUE=260
…
cmdThumbResize.click()
thisform.thumbnailEx1.setitemsSize(thisform.txtSetItemsSizeW.Value, thisform.txtSetItemsSizeH.Value)
thisform.thumbnailEx1.setItemsSpacing(thisform.txtSetItemsSpacingH.Value,thisform.txtSetItemsSpacingV.Value)
…
But even when you usually close-form

Code: Select all

THISFORM.RELEASE
************** Exception Text **************
System.NullReferenceException wurde nicht behandelt.
Message=Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
Source=GdPicture.NET.9
StackTrace:
bei GdPicture9.ThumbnailEx.gdpicture_ᜀ(Object A_0, ProgressChangedEventArgs A_1)
bei System.ComponentModel.BackgroundWorker.OnProgressChanged(ProgressChangedEventArgs e)
bei System.ComponentModel.BackgroundWorker.ProgressReporter(Object arg)
bei System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bei System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
bei System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)
InnerException:


Please find attached the form. Please frequently cboThumbResize change to reproduce error

Re: System.NullReferenceException (VFP SP2)

Posted: Mon Mar 18, 2013 9:12 pm
by Loïc
Hello,

Could you please create a ticket on the helpdesk? http://support.orpalis.com

So we can investigate this hard issue easily.

Kind regards,

Loïc