System.NullReferenceException (VFP SP2)

Discussions about GdPicture.NET usage in non managed applications built in vb6, Delphi, vfp, MFC c++ etc...
Post Reply
User avatar
DMI
Posts: 4
Joined: Fri Dec 14, 2012 12:05 pm
Location: Germany

System.NullReferenceException (VFP SP2)

Post by DMI » Mon Mar 18, 2013 2:44 pm

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
Attachments
DMI.zip
(9.93 KiB) Downloaded 120 times

User avatar
Loïc
Site Admin
Posts: 5594
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: System.NullReferenceException (VFP SP2)

Post by Loïc » Mon Mar 18, 2013 9:12 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests