473,387 Members | 1,365 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Strange problem when quitting program after library reference updates?

We have developed an Acc97 application and distribute it using the
Wise installation system and SageKey scripts. The installations are
rock solid and the product works well on all types of systems.
However, we have notice a peculiar issue when running on either
Windows 2000 or Windows XP systems. Specifically, the application uses
the OutLook libraries to move information back and forth to MS
OutLook. We check references when the application initially starts and
use code to fix any broken ones. This works well and the application
runs without problems except as follows.

When we exit the program the FIRST TIME ONLY (after the refs were
updated), we get an item in the system tray that shows a window
stating that the app had a compile error and could not close. This is
odd since the app has closed and can be re-opened, closed, and used
properly as many times as required. The tray item seems to have no
effect on the application but it is a little disconcerting to the user
since the only way to get rid of it is to use the Task Manager.

There is a small routine that cleans up user information and close
open objects when the app closes. If we bypass this routine and/or any
other code and simply use a macro with Action=Quit, the app will NOT
leave this tray item. Has anybody seen this type of behavior before
and/or know how to stop it?

Any and all assistance is appreciated.

Tony Ciconte
DSI

Nov 12 '05 #1
2 1536
Tony Ciconte wrote:
There is a small routine that cleans up user information and close
open objects when the app closes. If we bypass this routine and/or any
other code and simply use a macro with Action=Quit, the app will NOT
leave this tray item. Has anybody seen this type of behavior before
and/or know how to stop it?


I haven't. Hopefully someone else has and can help. If I understand
you correctly, when you close the app and it runs some cleanup code, it
leaves the app on the system tray. If you don't run it the cleanup code
it does not. Is that correct?

Do you do something like
If SomethingIsTrue Then Do Cleanup
Application.Quit

I can't imagine that using a macro to quit would make any difference.
That could indicate that something is not completing in the cleanup.
Maybe you could do something like
If SomethingIsTrue Then Do Cleanup
DoEvents
Application.Quit

If that doesn't correct, I would look at your cleanup code
Sub Cleanup
If This is true then
.....
endif
If that is true then
.....
endif
End Sub
Then put in
Exit Sub
immediately under the word Sub. Then run. Does it leave it in SysTray?
If not, move Exit Sub under the first endif. Then run. Does it leave
it in Systray? Keep repeating until you find the code section that does
leave it in Systray. Then scratch head, puzzle it out, and see if it
can be fixed.

Nov 12 '05 #2
Really to have any chance of answering this we need to see the code you use
for creating the references and your clean up code with comments to show the
difference between the working version and the non-working version.
--
Terry Kreft
MVP Microsoft Access

"Tony Ciconte" <to******@comcast.net> wrote in message
news:5j********************************@4ax.com...
We have developed an Acc97 application and distribute it using the
Wise installation system and SageKey scripts. The installations are
rock solid and the product works well on all types of systems.
However, we have notice a peculiar issue when running on either
Windows 2000 or Windows XP systems. Specifically, the application uses
the OutLook libraries to move information back and forth to MS
OutLook. We check references when the application initially starts and
use code to fix any broken ones. This works well and the application
runs without problems except as follows.

When we exit the program the FIRST TIME ONLY (after the refs were
updated), we get an item in the system tray that shows a window
stating that the app had a compile error and could not close. This is
odd since the app has closed and can be re-opened, closed, and used
properly as many times as required. The tray item seems to have no
effect on the application but it is a little disconcerting to the user
since the only way to get rid of it is to use the Task Manager.

There is a small routine that cleans up user information and close
open objects when the app closes. If we bypass this routine and/or any
other code and simply use a macro with Action=Quit, the app will NOT
leave this tray item. Has anybody seen this type of behavior before
and/or know how to stop it?

Any and all assistance is appreciated.

Tony Ciconte
DSI

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Phil Galey | last post by:
VB.NET 2002 on Windows 2000 SP 3 When I start my program, the NotifyIcon appears in the tray, as it should. However, when I close the program, the NotifyIcon remains until I hover over it with...
5
by: sriram | last post by:
I have the following: class BSA { ... ... ... ... public: enum VRGAttrId {
2
by: Tony Ciconte | last post by:
We have developed an Acc97 application and distribute it using the Wise installation system and SageKey scripts. The installations are rock solid and the product works well on all types of systems....
2
by: rodmc | last post by:
I have written an application which uses threads and the XMPP library - this is a library which supports the jabber instant messaging protocol. The application works fine when run from Idle,...
1
by: stromhau | last post by:
Ok, i have a file with main and an additional .cpp file i include in the main file but i get a lot of strange warnings when including. Both files compile just great separately. It seems that it have...
6
by: tony | last post by:
Hello! I have several projects where each one build a library.(class library or window control library). Now I get some strange compile error when building the *.exe file and doesn't...
4
by: Chris | last post by:
Hi, I'm puzzled by some strange behavior when my Python/Tkinter application quits (on linux): the terminal from which I started Python is messed up. If start up python, then import the code...
112
by: Prisoner at War | last post by:
Friends, your opinions and advice, please: I have a very simple JavaScript image-swap which works on my end but when uploaded to my host at http://buildit.sitesell.com/sunnyside.html does not...
0
by: charmeda103 | last post by:
when i run my program it runs with no erorrs but the output screen is giving me strange results here is whats its giving me: CONFERENCE OVERALL RANK TEAM W-L % WINS MARGIN W-L ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.