I ran your demo.prg in FoxPro 2.6 and Visual FoxPro 6.0 without any errors. Resource Manager Errors are usually caused by memory or other problems outside of FoxPro. Check the FoxPro Resource Kit for information about fixing this problem.
>I'm using Foxpro 2.5b for Win and meet a "big" problem. I need to print some sheets separately, each sheet is to be produced by using several "@..say" commands followed with a "set print to" command. After several sheets are printed, error message "Resource Manager Internal Consistency Error" will occur and then foxpro will shutdown. How to solve this problem? the demo code is as followed, continue to run it in foxpro, ther error will occur.
>
>Do me a favor. I'm looking forward to anyone's reply.
>
>Thank's very much!
>
>Wanqian Deng
>
>
>demo.prg:
>
>PRIVATE str,fontx, pos
>SET DEVI TO printer
>m.pos=0
>str="sample string"
>=afont(fontarray)
>FOR i=10 TO 18 && ALEN(fontarray)
> fontx=fontarray(i)
> FOR j=10 TO 20
> @m.pos/11,10 SAY str FONT (fontx), j
> m.pos=pos+FONTMETRIC(1,(fontx),j)
> ENDFOR
>ENDFOR
>set printer to
>RETURN
Précédent
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