Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Invalid file descriptor
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00538589
Message ID:
00539133
Vues:
24
Hi Nadya,

Well it worked fine, here is what I did the full code:

LOCAL m.lcFcgClass,m.lcQE
m.lcFcgClass="FcgCustom.VCX"
m.lcQE="QE.EXE"

IF ! "FCGCUSTOM.VCX" $ UPPER(SET("CLASSLIB"))
SET CLASSLIB TO (m.lcFcgClass) IN (m.lcQE) ADDITIVE
ENDIF

oQE_Keeper = NEWOBJECT("_QE_Keeper")

The above code was entered in Form.Init so I can run it in
development mode. The SET CLASSLIB can be entered
into the main program when it is time to compile.

By using memvars I prevent also compiler errors since
the compiler would look for that class library named
let's say FcgCustom which is within the QE.EXE, (it will never
fine it) also having a memvar instead of the EXE will prevent
any compiler references into that EXE file.

I am using service pack 5 VFP6 and MS still did not resolve the
"Invalid file descriptor" error which I hope in version 7 it would
be gone.

If you have any other ideas let me know.

Regards,

Doron



>Ok, great. Let me know, if it would help in your case.
>
>>Hi Nadya,
>>
>>I think it is too eraly in Boston<s>, but I searched all over and found this work around as suggested by you. Now I need to test it. I just did not search a little deeper before.
>>
>>Thanks,
>>
>>Doron
>>
>>>Hi Doron,
>>>
>>>Sergey is trying to suggest, that you can search here for this title (BTW, I got it after looking at the thread, Sergey pointed, for ~5min. :)).
>>>
>>>Anyway, I had the same error before and I fixed it by not using "qe.exe" as a parameter, but using empty string instead. The explanation of this error is vague, but it's something with having set classlib to yourlibrary.vcx somewhere earlier in a project and then issue a NewObject function (or method) with the same classlib name.
>>>
>>>At least, this was a problem in my case and making the fourth parameter empty string fixed it. It might be unrelevant to your situation, but it's worth to try...
>>>
>>>You really have to search here and I would not do it for you, though I can... :)
>>>
>>>
>>>>Hi All,
>>>>
>>>>In order to by pass the compiler error I reference the QE.EXE indirectly.
>>>>This class FcgCustom.VCX is within the EXE file.
>>>>
>>>>But from time to time I am getting Invalid file descriptor error.
>>>>It does not happen all the time.
>>>>
>>>>VFP help saya the following:
>>>>------------------------------
>>>>Invalid file descriptor (Error 1111)
>>>>Visual FoxPro is unable to open a file.
>>>>
>>>>The file is there so I am not sure why this error pops up.
>>>>
>>>>Any idea? (see code below)
>>>>
>>>>Thanks
>>>>
>>>>Doron
>>>>
>>>>LOCAL m.lcQEExe
>>>>m.lcQEExe="QE.EXE"
>>>>m.lcFcgClass="FcgCustom.VCX"
>>>>
>>>>WITH ThisForm
>>>> .AddProperty("oQE_Keeper")
>>>> .oQE_Keeper=NEWOBJECT("_QE_Keeper,m.lcFcgClass,m.lcQEExe)
>>>>ENDWITH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform