error

How to run BoundsChecker suite for Error Detection for VC projects from command line?

How to run BoundsChecker suite for Error Detection for VC projects from command line? ...

How to stop Visual Studio 2010 on compilation error

At work we have a solution with over 90 projects. I want to know if there is a way to stop visual studio from compiling as soon as it encounters an error. Normally it will compile as far as it can and show a list of errors in the error window. Any ideas? ...

error when running any query in sql server management studio: the file exists

When I run any query in sql server management studio, I get the following error: An error occurred while executing batch. Error message is: The file exists. Restarting SSMS didn't help. Neither did rebooting the machine. The only thing I found on Google was someone saying "report the bug to microsoft" :P (Windows XP Pro x64, SSMS ...

Strange WndProc bug in .Net. VB.Net more specifically.

ETA: I use visual studio 2008 express edition. If I override WndProc and mess up somehow, I'll usually backtrack by commenting out code until it works again. The strange thing with WndProc though is you can strip it down to: Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message) MyBase.WndProc((m)) End Sub and ...

RubyGems installation errors both when using 'sudo' and not using sudo

I have a machine that is running Ubuntu Hardy, which provides its own RubyGems package. Unfortunately that version of RubyGems (1.1.1) is too old to do anything useful with, so I decided to manually update RubyGems to the current version (1.3.6). That part went smoothly, and if I do gem -v, I get 1.3.6 which is expected. The problem i...

g++ no matching function call error

I've got a compiler error but I can't figure out why. the .hpp: #ifndef _CGERADE_HPP #define _CGERADE_HPP #include "CVektor.hpp" #include <string> class CGerade { protected: CVektor o, rv; public: CGerade(CVektor n_o, CVektor n_rv); CVektor getPoint(float t); string toString(); }; the .cpp: #include "CGerade.hp...

how can i make a good errror handler for my parsing which sends mail only when a page couldnot be opened???

Iam doing parsing and for that i need an error handler that should send mail only when a page is not opening up or is going on not found or is forbidden or something. What iam using currently is this :- function customError($errno, $errstr, $errFile, $errLine) { switch ($errno) { case E_ERROR:error_log("ERROR:in $errFile...

VS2010 final does only link project on "rebuild all", not on "build changed"

I've just migrated a solution containing c++ and c# projects from VS2008 to VS2010 and got a strange problem. When I select "rebuild all", everything compiles and links as I would expect it to do. Then I change some c++ source file (just add a space), build the project, I get several thousands of linking errors like these: GDlgPackerL...

VS 2010 Error “Object reference not set to an instance of an object” when adding Service Reference for WCF Service

I have a VS2010 (RTM) solution which contains: WCF Service project Console WCF client project Class project for DataContracts and members Class project for some simple classes I successfully added a service reference in the console client project and ran the client. I then did a long dev cycle repeatedly modifying the service then u...

Beginner C++ Question

I have followed the code example here toupper c++ example And implemented it in my own code as follows void CharString::MakeUpper() { char* str[strlen(m_pString)]; int i=0; str[strlen(m_pString)]=m_pString; char* c; while (str[i]) { c=str[i]; putchar (toupper(c)); i++; } } But this gives me the following compiler...

Whats wrong with my Random?

Here's my import statement: import java.util.*; Here it is in main: Random Rand = new Random() ; Here it is in a public void method : int a = 0 ; while (!done) { int a = Rand.nextInt(10) ; if (debug) stuff ; if (possibles[a]==1) done = true ; ...

MSDeploy: error using runCommand provider to call remote .cmd file (timeout)

We are running into an error when trying to use the MSDeploy "runCommand" provider to execute a .cmd file on a remote machine. The expected run time should be about 10 seconds, but MSDeploy only runs it for about 2-3 seconds, after which time error details are returned. Here is the complete MSDeploy "runCommand" command line text I am u...

non static method cannot be referenced from a static context.

First some code: import java.util.*; //... class TicTacToe { //... public static void main (String[]arg) { Random Random = new Random() ; toerunner () ; // this leads to a path of // methods that eventualy gets us to the rest of the code } //... public void CompTurn (int type, boolean debug) {...

How can I specify that Doctrine must use a mysqli-connection

Hi, while executing a long script that uses Doctrine to access the db, I get an error 2006 server has gone away. I've already solved this problem on a website that doens't use Doctrine. The solution there was to use mysqli instead of the normal mysql driver. How can i tell Doctrine to use a mysqli-driver in order to avoid 2006-errors? ...

File uploading with ColdFusion, too big of file timing out?

A client has the admin ability to upload a PDF to their respective directory and have it listed on their website. All of this works dandy until a PDF reaches a certain file size that makes the server time out. This causes an error and the file uploaded will not succeed. As mentioned in the title, we are using ColdFusion with a command...

How can I parse_url in PHP when there is a URL in a string variable?

I am admittedly a PHP newbie, so I need some help. I am creating a self-designed affiliate program for my site and have the option for an affiliate to add a SubID to their link for tracking. Without having control over what is entered, I have been testing different scenarios and found a bug when a full URL is entered (i.e. "http://examp...

Rails: unit test fails with "No such file or directory....database.yml" error

When I execute a Rails unit test from the command line (as suggested here) such as ruby unit/test_model.rb ...I get this error: No such file or directory - .../test/config/database.yml (Errno::ENOENT) Am I doing something wrong? Or is there a workaround? ...

Cheking and error on a PHP function

There is a way to check with a "IF" if a function fails in php? Ex. If (getimagesize($image) returns and error) { echo 'Error: function dont work'; } else { // do something } Thanks! ...

MySQL Error 1452 - Cannot add or update a child row: a foreign key constraint fails

I've looked at other people's questions on this topic but can't seem to find where my error is coming from. Any help would be greatly appreciated. I'm including as much as I can think of that might help find the problem: CREATE TABLE stocks ( id INT AUTO_INCREMENT NOT NULL, user_id INT(11) UNSIGNED NOT NULL, ticker VARCHAR(20) NOT NUL...

Why "import javax.jdo.* "caused error ?

I have a class uses the following lines, it works fine in a Google App Engine project: import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.IdentityType; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; But when I included this ...