Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invalid file descriptor
Message
From
11/08/2000 02:46:33
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00402941
Message ID:
00403792
Views:
17
Nadya,

A search of the MS knowledgebase showed that "invalid file descriptor" errors show up in a couple of different curcumstances, but there was no mention of NewObject(). A search of the UT archives revealed the following:

Classes - VCX Re: Invalid File Descriptor Thread #268291 Message #269601
From 09/27/1999 16:01:30
Brett Duvall #010721
Essential Skills, Inc
Kansas City, Missouri
To 09/23/1999 18:08:49
Brett Duvall #010721
Essential Skills, Inc
Kansas City, Missouri

Update: Microsoft tech support has agreed that this as a VFP6.0 bug, which is "likely to be fixed in the next Service Pack or Version"...

We found a work-around, however. Before including a classlib or application name in the newobject() function, make sure it is NOT included in SET('CLASSLIB').

IF 'mylib' $ LOWER(SET('CLASSLIB'))
llObj = NEWOBJ("myclass")
ELSE
llObj = NEWOBJ("myclass", "mylib", "myapp.exe")
ENDIF


>I have a statement that says
>SET CLASSLIB TO mylib IN myapp.exe
>
>I am trying to use the NEWOBJECT function in myotherapp.exe like this:
>llObj = NEWOBJ("myclass", "mylib", "myapp.exe")
>
>When executing the function, I am getting Error 1111 - Invalid File Descriptor.
>
>Does anyone know what this means or how I can resolve it?
>
>Thanks,
>-Brett







>Hi everyone,
>
>I've gotten this strange Error message on this line of code:
>lotherm = newobject("thermometer", "wg","zipping.app","Zipping Progress for: "+lcfilename,lnReccount)
>
>This is from the Help:
>Invalid file descriptor (Error 1111)
>Visual FoxPro is unable to open a file.
>
>Record your recent actions while using Visual FoxPro and then call Microsoft Support.
>
>
>Funny?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform