Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unable to use WinExec
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00092940
Message ID:
00093402
Views:
40
>A quick question, if you don't mind.
>
>Why are you having to re-initialize the app? Memory leaks?
>
>If so, there may be other solutions.

I am re-initializing, because my program slows down after day or so of constantly running. The program makes calls to Lotus Organizer through a Lotus API. I am pretty sure the problem is with their API and not my program. :) I started a discussion about this under the thread "Lotus API slows down computer." I tried some suggustions to no success, such as, CLEAR DLLS and redeclaring them.

So instead of spending more hours on this project, I thought the best solution would be to re-initialize the program everyday. I think I finally got a solution that works. This is what I did.

At the end of the day, the application (A.EXE) terminates. Before termination, A.EXE launches B.EXE via ShellExecute. B.EXE then launches A.EXE and terminates. This seems to work. For some reason, Windows 95 does not allow me to launch A.EXE from A.EXE. On the other hand, Windows NT lets me do this.

Oh well, I will let you know if I have futher problems. Thanks again for your help!
Previous
Reply
Map
View

Click here to load this message in the networking platform