Solved

problem writing exceptions to Access

Posted on 2004-09-10
3
192 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

863 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now