473,387 Members | 1,517 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.

Unstable Access

PhilOfWalton
1,430 Expert 1GB
I have developed (with lots of help) a Rich Text message box. Advantages being, apart from being pretty, you can copy the any error message wording.

Basically, there are 2 ways of using it. You type and format a rich text message in the top box, press the Test Output Button, and the code in the bottom box can be pasted into a VBA project to replace MsgBox

Alternatively, if yo have the VBA code, that can be pasted into the bottom box, Press the Restore button and the Rich Text gets restored.
I won't go into all the details, unless someone comes up with something

I just have a feeling it is unstable, as when I close programs that use the 2 forms and 1 module.

I often get an error message to the effect that Access is restarting.

If anyone could look at it and give any advice, I'd be very grateful.
Aug 1 '16 #1
4 1178
zmbd
5,501 Expert Mod 4TB
I haven't downloaded this yet... are you making any API calls?
Did the code work in 32Bit OS?
Aug 2 '16 #2
PhilOfWalton
1,430 Expert 1GB
I am using Windows 10 64 bit & Access 2010 32 bit for all applications.

The RichBox uses lots of API calls, interestingly some of them use the Office 64 bit version with the word PtrSafe in it, but I have never found that a problem in other databases.

Phil

Phil
Aug 2 '16 #3
jforbes
1,107 Expert 1GB
Phil,

I played around with this. More than I intended to and I noticed the instability that you are talking about as well as the Copy and Paste crash while debugging. It seemed most of the time the errors would happen when something during debugging caused This action will reset your project, proceed anyway? When that message popped up, it was a guarantee Access was going to crash soon.

I also /decompiled the database, but it didn't change anything. I didn't create a new database and reimport everything, which should probably be tried.

Which makes me think something within the API calls is being orphaned, a pointer or type structure isn't being disposed of properly. So when the "Reset... proceed anyway?" message is displayed, you just know Access isn't going to be able to clean up like it thinks it can.

Another thing that I noticed is that I could mess around all day and not experience the error, but sometime after displaying the RichTextBox things would get unstable. Again, this reinforces to me that one of the APIs isn't cleaning up after itself, since that is where the bulk of them are being used.

I would recommend commenting out blocks of API calls at a time to see if you can get things to stabilize. Alternatively, you could comment them all out and see if the problem goes away.

For your info, I monkeyed around with the database on a Windows 7 machine, and Access 2007.
Aug 4 '16 #4
PhilOfWalton
1,430 Expert 1GB
Thanks, jforbse, I really appreciate the time that you have spent. If we can overcome the problem, I think it could be quite useful bit of software.

I use it in some of my programs, and fortunately, in normal use as an AccDb or AccDe the error only shows up after closing the database.

Anyway, you certainly have given me some good news. If it crashes on both your machine and my Widow 10 with Access 2010 32 bit, there has to be something wrong and I agree, it's almost certainly due to an API not releasing something.

I shall play around tomorrow and keep you informed.

Phil
Aug 4 '16 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Fei Peng | last post by:
>Description: High Resolution Science Imaging experiment(HiRISE) project for one of important instrument on MRO spacecraft which will be launched to MAR in 2005 are using MySQL server 4.0.13 as...
6
by: Serious_Practitioner | last post by:
....or lack thereof... I use Access 2000 which I own as part of Office 2000 Professional. I've had enough trouble with glitches to ask if these are common occurrences - 1. Sometimes the "Help"...
1
by: Randy | last post by:
Is Access 2000 unstable? I have been trying to learn and set up a database and it seems to be doing some strange things. Like lock ups and not completing some actions in macros and queries. If...
47
by: ship | last post by:
Hi We need some advice: We are thinking of upgrading our Access database from Access 2000 to Access 2004. How stable is MS Office 2003? (particularly Access 2003). We are just a small...
6
by: gsb58 | last post by:
Hi! Recently we, in Norway changed to three different VAT levels. All three needs to be on the invoice program. This is easy obtained via a new field and set the rowsource to valuelist and make...
37
by: jasmith | last post by:
How will Access fair in a year? Two years? .... The new version of Access seems to service non programmers as a wizard interface to quickly create databases via a fancy wizard. Furthermore, why...
13
by: Owen Jenkins | last post by:
Following on from an earlier post... I can reliably corrupt a record by doing the following ... Open two separate but identical front ends on one PC each linking to the same back end. Edit a...
0
by: Nokao | last post by:
I'm having a lot of severe errors in my db2diag.log, (DB2 v9.1.0.0). Googling I don't fin any information :( What can I do? I attach the first reports...: 2007-11-19-17.50.26.379948+060...
0
by: Ruel Samuels | last post by:
Hello- My development computer is a 32-bit Win Vista os laptop. The solution was recently compiled with the Dotfuscator CE version which led to "filenotfound" errors. The Dotfuscator project was...
1
by: Emek Taydas | last post by:
Helloes, I'm experiencing a nasty problem in a server-client application. Don't have the perfect solution yet, but I have ideas. Seeking opinions/ideas to find the perfect solution. The...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.