Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error loading graphic image
Message
From
29/08/2006 09:12:08
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Error loading graphic image
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01149315
Message ID:
01149315
Views:
49
I am having an interesting problem with an application on Windows 2000 Server with Service Pack 4. The problem started once the server was upgraded from SP1 to SP4. I have no problem with the application running in any other network environment. This server is using Terminal Server and the user is accessing via RDP, but there is the same problem running the application on the server. I have built a Windows 2000 server in my office and can reproduce the problem. I only get the error when specific jpg graphics files are accessed. The majority of the files load fine.

I get an error window that says:
Fatal Error Exception Code C0000005
Called from multipag.pageframe1.refresh line 9

My application has a image burried down on a pageframe on a pageframe. In the refresh event I have the following code that selects the jpg file that is used in the image.
	*  Locate the appropriate graphics image for display

	m_look = m_dismodpath+ALLTRIM(Base.lcode)+'.jpg'
	IF FILE('&m_look')
		thisform.Pageframe1.Page1.Pageframe1.Page3.Image1.Picture = m_look
	ELSE
		m_look = m_disdefpath+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.jpg'
		ENDIF
	ENDIF
The logic is looking to see if there is a graphic down in the 'display modified folder' If there is one, use it else look in the 'display default folder'. if there is one found then use it otherwise use a default graphic that says there was no graphic for this specific code. In this particular instance as in most instances there was no modified graphic but there was a default graphic.

I can use a jpg viewer and reach over to the server and load the jpeg just fine.
Reply
Map
View

Click here to load this message in the networking platform