Solved

problem writing exceptions to Access

Posted on 2004-09-10
3
194 Views
Last Modified: 2010-04-15
Hi,

I'm trying to nail down a bug which has been nagging me, so I decided to log any and all exceptions to Access.  Trouble is that I can't seem to get a Memo field to accept the exception, which is chocked filled of special characters.

Any ideas about how to get such a chunk of text into Access?  Or if you know any other way to accomplish my goal of logging an exception, I'd really appreciate it.


Thanks,
Bob
0
Comment
Question by:ba272
3 Comments
 
LVL 20

Expert Comment

by:TheAvenger
ID: 12025666
Do you want to log only the message? If so, you can use a simple Text field. It takes less memory and is much easier to handle. Just make its size 255 (I think this is the maximum) and you will be able to save at least 99.99% of the messages (the other 0.01% will be too long and will be cut)
0
 
LVL 8

Accepted Solution

by:
Razzie_ earned 500 total points
ID: 12026597
'which is chocked filled of special characters.'. Are you saving the Exception.Message and not trying to save the Exception object itself?
0
 

Author Comment

by:ba272
ID: 12027734
Thanks.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question