Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invalid file descriptor
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00538589
Message ID:
00539365
Views:
41
Hi!

Pardon for jumping in...

>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.
>

You can report it as a bug to MS site or put it into VFP 8 wishes list document.

>If you have any other ideas let me know.

Well, I observing this thread from start and have one idea.
Why you store class in the separate EXE file? Is not it much easy to store it into the FXP file? I understand that this will require to turn the VCX into the PRG file that is a 5 minutes of work if you have no classes with objects containership tree deeper than 2 levels. However, you will have a benefit - FXP takes less space, and it cause no bugs like mentioned in this thread when you SET PROCEDURE it and than use CreateObject/AddObject instead of NewObject.

>
>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
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform