Information générale
Catégorie:
Gestionnaire d'écran & Écrans
I have an application where I display an image on a form. I search for a specific .jpg image. If it exists, I display it, otherwise I display a default .bmp image that simply says there is no image available.
The code in the pageframe refresh event is as follows:
* Locate the appropriate graphics image for display
m_look = m_dismodpath+'d'+ALLTRIM(Base.lcode)+'.jpg'
IF FILE('&m_look')
thisform.Pageframe1.Page1.Pageframe1.Page2.Image1.Picture = m_look
ELSE
m_look = m_disdefpath+'d'+ALLTRIM(Base.lcode)+'.jpg'
IF FILE('&m_look')
thisform.Pageframe1.Page1.Pageframe1.Page3.Image1.Picture = m_look
ELSE
thisform.Pageframe1.Page1.Pageframe1.Page3.Image1.Picture = m_disdefpath+'nopic.bmp'
ENDIF
ENDIF
This code works fine running under Windows 2000, but I'm getting mixed results on Windows 98. On occasion it works, but in most instances I am getting the error message:
Fatal error: Exception Code=C0000005
Any thoughts?
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement