Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File not open error
Message
From
07/12/2001 04:44:21
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00590976
Message ID:
00591028
Views:
23
>Hi all,
>
>This one has got me stumped, so Im hoping someone out there has experienced it before.
>
>I have a class defined as Custom OLEPUBLIC (in VFP7)
>It has a method called OpenTables
>
>In this method, I read a Directory from an ini file, using FoxPros OldIniReg class, which is working fine (done some debugging), I then do
>
>USE m.cDir + "Parts" IN 0 ORDER Part SHARED
>
>
>When I create an instance of the class and run the openTables method, it breaks on this line reporting an
>OLE IDispatch Error 1114, File Not Open
>
>I Have done this exact thing in other COM Classes before with no problems, anyone got any clues.
>
>Note: I can 'step' through the code by executing each line on the command window and it works fine.

Chris,
Did you use a session object and set to private ?
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform