Loading...

Fatal Error on Mouse-Move

Support for GdPicture Light Imaging Toolkit and GdPicture Pro Imaging ActiveX/SDK.

Fatal Error on Mouse-Move

Postby BPinkerton » Sat May 26, 2007 9:25 pm

Hi.
Suddenly I am getting 100's of error 91 messages when I install a release version (my program) on some computers. This code seems to be the problem:

Private Sub oGdViewer_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Dim nAlpha As Byte
Dim nRed As Byte
Dim nGreen As Byte
Dim nBlue As Byte
Dim nARGBColor As Long
nARGBColor = ogdpicture.PixelGetColor(oGdViewer.GetMouseX, oGdViewer.GetMouseY)
Call ogdpicture.ColorGetARGBFromARGBValue(nARGBColor, nAlpha, nRed, nGreen, nBlue)
End Sub

As when it does occur it does so whenever the mouse is moved over gdPicture/gdViewer. The problem does not occur on all computers (does on many/most) and never occurs on my development computer.

Any ideas anyone????
:?:
BPinkerton
 
Posts: 5
Joined: Sat May 26, 2007 9:14 pm

Postby Loïc » Tue May 29, 2007 11:11 am

Bill I think you need to add this line of code

Code: Select all
oGdPicture.SetNativeImage (oGdViewer.GetNativeImage)


into the oGdViewer_PageChange() Event...


==>


Code: Select all
Private Sub oGdViewer_PageChange()
   oGdPicture.SetNativeImage (oGdViewer.GetNativeImage)
End Sub



Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4430
Joined: Tue Oct 17, 2006 10:48 pm
Location: France


Return to GdPicture [Pro] ActiveX

Who is online

Users browsing this forum: Bing [Bot] and 2 guests

cron