Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP6 DLL giving error in VB6
Message
From
23/03/2002 12:35:37
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00634135
Message ID:
00636451
Views:
17
Hi,

My application seem to be working after I recompiled my VFP6 application
to single thread and single instance as I am told VB6 is single threaded.
It work most of the time, but occassionally, it just don't work, it just
halt my application. For my application written using VB6, it will on
startup initialize the class and will called the dll function occasionally.

Like

set foxdll = new foxdll

foxdll.reindex()

Please kindly advise me on this issue. Thank a lot.

>>Hi,
>>
>>My application is using a DLL that I created using VFP6 that will
>>do simple packing ,zapping and SQL plus indexing.
>>I had compiled it to be single-threaded.
>>
>>However, when I run it in my VB6 application, it work fine the first
>>time only, on second run, it will halt my application, then indexing
>>don't seem to work until I restart my system. What is wrong with my DLL
>>that I do wrong. Please kindly advise me.
>
>Hello Virusim,
>
>Do you mean the second run happens without restarting the application?
>
>Check out your VFP DLL project: VFP Menu/Project Info/Servers tab/Instancing field.
>
>If it says Single Use, what happens there is that you cannot instanciate a second instance of Single Use DLL COM object.
>
>There are two things you can do:
>
>1. Change it to Multi Use and recompile your DLL. Then you will be able to instantiate more than once.
>
>2. Leave it as Single Use and make sure that in VB you release your DLL after the use:
>
>
Set oMyVFP_DLL = Nothing
Best Regards
Virusim
Previous
Reply
Map
View

Click here to load this message in the networking platform