I'm using c++ in visual studio express to generate random expression trees for use in a genetic algorithm type of program.
Because they are random, the trees often generate (I'll call them exceptions, I'm not sure what they are)
Thanks to a suggestion by George, I turned the mask _MCW_EM on so that hardware interrupts are turned off. (...
In asp.net(c#),i use linqtosql,In the table,i 've set property of a field Isunique to true.. when the same value inserted again,it shows error(exception) "Cannot insert duplicate key row in object 'dbo.student' with unique index",i need to catch the exception and display the error message.. How to handle sqlexception ? Thanks in advance....
I want to get address of instruction that causes external program to SIGSEGV. I tried using ptrace for this, but I'm getting EIP from kernel space (probably default signal handler?). How GDB is able to get the correct EIP?
Is there a way to make GDB provide this information using some API?
edit:
I don't have sources of the program, onl...
What is the best Django syncdb crash debugging technique ?
I've previously asked a question about a problem with manage.py syncdb returning an exception
and the answer was that the app has a wrong import.
http://stackoverflow.com/questions/2734721/django-manage-py-syncdb-not-working
I'd like to know the technique used to find the plac...
Hi there,
I have an algorithm for creating the sieve of Eratosthenes and pulling primes from it. It lets you enter a max value for the sieve and the algorithm gives you the primes below that value and stores these in a c-style array.
Problem:
Everything works fine with values up to 500.000, however when I enter a large value -while run...
Hi,
I have a problem with a databinding in WPF.
When I try to use a value converter and set the NotifyOnTargetUpdated=True property to True, I get an XamlParseException with the following message:
'System.Windows.Data.BindingExpression'
value cannot be assigned to property
'Contenu' of object
'View.UserControls.ShadowedText'....
I am using 2 Tables (JTable) with their DefaultTableModels.
The first table is already populated.
The second table is populated for each row of the first table (using an SQL Query).
My purpose is to export every line of the first table with it's respective lines of the second in an Excel File.
I am doing it with a for (for each line of ...
Coded for a checkbox that agrees to the Terms of Service and an accept and decline button.
I need help for an exception handling that
if the user does NOT have the checkbox as SELECTED then when they hit accept, an error message occurs telling the user that he has not selected the checkbox.
How would I code an error handling except...
In Asp.net (c#),i'm not able to catch exception(FileNotFoundException) properly... i don't know the reason..Actually File s not there..But catch statement fails to catch the exception..
here is the code..
try
{
System.Drawing.Image imgg1 = System.Drawing.Image.FromFile(Server.MapPath("").ToString() + "\\images\\img1.jpg");
}
catch (File...
I am programming a simple 2d game engine. I've decided how I'd like the engine to function: it will be composed of objects containing "events" that my main game loop will trigger when appropriate.
A little more about the structure:
Every GameObject has an updateEvent method.
objectList is a list of all the objects that will receive upd...
I am using spring exception translator to wrap java exception into flex exception.
eg
public void testException()throws Exception{
throw new Exception("my exception");
}
But for some reason, I am getting IllegalAccessError.
The code sections are entering the testException and the Translator class.
Question:
why it trying to g...
Environment is VC++ 9 on various Win platforms (XP and later)
I'm writing an unhandled exception handler. I have a vague recollection from my kernel days that it was bad to catch an EXCEPTION_GUARD_PAGE, as this was generated to tell the OS to enlarge the stack.
My question is twofold:
Can such an exception occur in user space?
If s...
I am trying to install MOSS 2007. This computer already had MOSS2007 installed, we had to uninstall MOSS2007 and install it again (for various reasons).
When we install MOSS2007, the installation completed fine but the Sharepoint Products and Technologies Configuration Wizard runs into the following problem in Step 2.
Why does it not...
Hey all,
In the pursuit of elegant coding, I'd like to avoid having to catch an exception that I know well may be thrown when I try to validate that the Text field of a Textbox is an integer. I'm looking for something similar to the TryGetValue for Dictionary, but the Convert class doesn't seem to have anything to offer except exception...
I am using TableAdapter to insert records in table within a loop.
foreach(....)
{
....
....
teamsTableAdapter.Insert(_teamid, _teamname);
....
}
Where TeamID is the primary key in the table and _teamID inserts it. Actually i am extracting data from XML file which contains unique teamId
After first run of this loop, Insert thr...
I am programming in C#; the code was working about a week ago, however it throws an exception and I don't understand at all what could be wrong with it.
Var root = new CalculationNode(); -> Throw exception.
In the call stack thats the only thing listed, I've been told that it could be that I need a clean build, but I am open to any id...
Working with .NET framework I have a service with a set of methods that can generates several types of exceptions: MyException2, MyExc1, Exception... To provide proper work for all methods, each of them contains following sections:
[WebMethod]
void Method1(...)
{
try
{
... required functionality
}
catch(MyExcept...
Using visual studio 2010, entity framework 4.0, ADO.NET POCO Entity Generator
On the code lines:
MecDbEnt.Domains.AddObject(subject);
MecDbEnt.SaveChanges(); (on this line)
the application throws follow exception:
complus exception code -532462766
Does anyone know how to solve an error like this?
Thx!
...
I have some technical questions. In this function:
string report() const {
if(list.begin() == list.end()){
throw "not good";
}
//do something
}
If I throw the exception what is going on with the program? Will my function terminate or will it run further? If it terminates, what value will it return?
...
Hi,
I'm using the .NET Exception Management Application Block (EMAB).
As part of this I am implementing IExceptionPublisher classes.
However, I am wondering what happens if these publishers encounter an Exception.
I had a bit of a look around and apparently they are meant to do something like this:
try
{
/* Normal Exception Pub...