Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C000005 on report preview with 7.0 runtime, not with 6.0
Message
 
 
À
22/11/2001 08:18:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00584882
Message ID:
00585053
Vues:
39
In VFP 7, paste the following code into a PRG and run it from the COMMAND WINDOW to see if it will duplicate your C5 error. Please let me know. Thanks.
CLOSE ALL
ERASE TestRepo.PJ?

TEXT TO lcText NOSHOW 

ERASE TestRepo.dbf
ERASE TestRepo.fr?
CREATE TABLE TestRepo (f1 c(3), f2 c(3))
INSERT INTO TestRepo VALUES ('111', 'AAA')
INSERT INTO TestRepo VALUES ('222', 'BBB')
CREATE REPORT TestRepo from TestRepo
USE TestRepo
FOR lnI = 1 TO 20
	REPORT FORM ("TestRepo") preview
ENDFOR

ENDTEXT

STRTOFILE(lcText,'TestRepo.prg')
CREATE PROJECT TestRepo NOWAIT NOSHOW
_vfp.ActiveProject.Files.Add('TestRepo.prg')
_vfp.ActiveProject.Build('TestRepo.exe', 3)
_vfp.ActiveProject.Close()
lcRuncmd ="RUN /N " + SET("Default") + CURDIR() + 'TestRepo.exe'
&lcRuncmd 
RETURN
>Hi,
>I have recompiled an existing application in VFP 7.
>Now, when I PREVIEW a report several times from the application, I get a C5 error. It happens sometimes on the first preview, sometimes the third or fourth time I hit "preview".
>But IF I RUN THE EXE USING 6.0 DLLS (-DVFP6R.DLL), it works ok. No C5s
>Any ideas?
>OS is W2000, 128 MB, it also happens on W95.
>Default printer is a HP laserjet5, with MS drivers
>TIA
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform