Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE Object Causes GPF on Return
Message
 
À
06/05/1999 08:32:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00215657
Message ID:
00215887
Vues:
21
>I have an application which creates and OLE object so it can print a document in Word. 2 PC's are working OK, but a third causes a GFP when the focus returns back to VFP (6.0). This same thing occured originally in VFP 3.0. At the time, my PC worked and the users didn't. We determined it was the SIMBA.DLL or the SIMADMIN.DLL. I copied my version6 to their PC and it worked great. This however, doesn't solve the problem this time. Has anyone seen this and how do we fix it?
>
>Thanks in advance,
>
>Scott


What are the differences between the PC's - speed by any chance? I've noticed that Word via automation occasionally only partly instatiates (i.e. VFP gets control back BEFORE word is fully loaded, depending on the version of Word / Windows and the speed of the PC.

I ended up using a loop:-
		veryTopWord = getObject(theFile)
		do while (nRetries < WordRetries) and (eCode <> 0)
			statusMsg("Retrying Word communication...")
			doEvents
			eCode = 0
			veryTopWord = getObject(theFile)
			nRetries = nRetries+1
			doEvents
			=inkey(SW_wordRetrySecs)
			doEvents
		endDo
The number of DOEvents is probably overkill, but you get the idea.

Hope this helps.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform