How can I view all the caught and handled exceptions in C# application while debugging, so that I can view where all errors happened and how it was handled.
I have global static variables in a C library, which generate exceptions in a multithread run. I need to make them safe in some way (i.e. - each thread should relate to a different instance of these variables). Any recommended methods?
10x
What is the best, most reliable web resource for browser market share?
This is required to assess which browsers should be favored while building CSS and, more importantly, browser-exceptions.
For example, should I be buiding for FF3 or FF2, given that there slight rendering differences.
I have a procedure in asp.net web site that gives strange result sometimes, I’m thinking to add some code to track it. My question is, in the production environment, is there any way that I can get the calling stacks like the one in the exceptions?
thanks.
on a test for Java-MySQL-Restlet application, I write to database at 4reqs/second for 120 seconds.
In this write I insert a row that has foreign key which has the same value for all rows, and this exception occurs:
Could not recover transaction. Original exception follows. com.mysql.jdbc.MysqlDataTruncation: Data truncation: Out of range value for column 'idPxxx' at row 1
Only 5% of requests fails to this exceptions, others works.
Regards
I always catch exceptions by value. e.g
try{
...
}
catch(CustomException e){
...
}
But I came across some code that instead had catch(CustomException &e) instead. Is this a)fine b)wrong c)a grey area?
I have global static variables in a C library, which generate exceptions in a multithread run. I need to make them safe in some way (i.e., each thread should relate to a different instance of these variables). Any recommended methods?
I'm developping a web application in Eclipse and I'm using maven, spring and tomcat.
Now the problem I have is that debug as = debug on server doesn't work.
I just get exceptions. (and yes I've created the server)
If I use the mvn command to compile it, put the war in my tomcat webapps dir and start my tomcat the application works fine. But for the functionallity I'm now working on debugging would be usefull.
Im saving an object model out to XML but when i load it back in I get exceptions when trying to use PropertyInfo.SetValue() because the property doesn't have a setter just a getter.
I want to either not save out the properties that only have getters or figure out on load whether its valid for me to try and set a value or not.
Anybody know how to do this
Cheers
Hi,
I'm trying to persist an object into the database using Cayenne Entity Manager. And unfortunately I get the following error:
org.apache.cayenne.CayenneRuntimeException: [v.3.0 Apr 26 2010 09:59:17] Commit Exception
Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table 'myDatabase.auto_pk_support' doesn't exist
Any idea how i could solve this issue? Thanks.
In my services all exposed methods have:
try
{
// the method core is written here
}
catch(Exception ex)
{
Log.Append(ex);
}
It's boring and ugly to repeat it over and over again. There is any way to avoid that? There is better way to keep the service working even if exceptions occurs and keep sending the exception details to the Log class?
Hi,
I have a PHP script that runs database queries. Now, if a query fails, should I trigger an error or throw an exception? I noticed that if I do the latter, the script execution will stop after facing the exception.
My code is as follows:
if (!$this->connection[0]->query($this->query))
throw new Exception($this->connection[0]->error);
What are the pros and cons of using exceptions for this kind of cases (failed queries)?
hello all,
i have a aplication on the android market , in wich exceptions and errors are catched and sent to me by acra.
But i receive quite a lot out of memory errors..
In different kind of classes...some my app, some general java..
Does this always mean there is a problem in my app, or can it also be the phone ran out of memory due to a other process?
Will users also get a fc dialog ?
thnks
Hi,
I am storing an array of bytes into SQL Server. I want to create and save an image from a byte[] but several attempts seem unreliable and result in intermittent exceptions.
What is the best way to go about this?
Hi, can anyone help me out.
i have a apllication where i want to log exception in files and dont want to change code.just acomponet which i can add in my code and it will start logging exceptions.
Thanks in advance.
I'm interested in programming languages well suited for embedded programming.
In particular:
Is it possible to program embedded systems in C++?
Or is it better to use pure C?
Or is C++ OK only if some features of the language (e.g. RTTI, exceptions and templates) are excluded?
What about Java in this domain?
Thanks.
Hi Everyone,
I have created an application in Compact Framework 2.0
This application is being used in many various counties and cultures.
My Issue is that any and all exceptions are logged, but they are appearing in the culture of the device, in some cases this means i am unable to read them.
Any help or suggestions will be appreciated
Thanks
Hi,
In my MediaPlayer application for streaming Video i am using the following code
File temp = File.createTempFile("mediaplayertmp", "dat");
while running it throws exceptions like
Parent directory of file in not
writable:/sdcard/
mediaplayertmp43912.dat
I dont how to handle this problem,and i want to know that when we execute that code means where the file will be created.any one knows the solution means please help with some code.
When using imageio.imageio.read iget a can't create ImageInput Stream. I have a catch exception around it so the program survives but i was wondering if theres a way to put an if statement round it that checks to see if it falied and then attempt to read it again if it did.
basically asking if there is a test for exceptions?
I am trying to add a lot of item to ListItemCollection in the ListControl, but once the Count reaches 127 I can't add any more items. It doesn't throw any exceptions, just doesn't add the items. I have changed Capacity to 256, but it still won't add more than 127 items. Is there a hard-coded limit?
Most JavaScript code is also syntactically valid ActionScript 3.0 code. However, there are exceptions which leads me to my question:
Which constructs/features in JavaScript are syntactically invalid in ActionScript 3.0? Please provide concrete examples of JavaScript code (basic JavaScript code without DOM API usage) that is NOT valid ActionScript 3.0 code.
Anyone know a tool I can use to debug "cannot access the file because it is being used by another process" exceptions? I suspect a virus scanner but I can't be sure.