Fatal Error on Mouse-Move

Discussions about image processing and document imaging.
Post Reply
BPinkerton
Posts: 5
Joined: Sat May 26, 2007 9:14 pm

Fatal Error on Mouse-Move

Post by 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????
:?:

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

Post by 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

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests