error

Python When I catch an exception, how do I get the type, file, and line number?

Catching an exception that would print like this: Traceback (most recent call last): File "c:/tmp.py", line 1, in <module> 4 / 0 ZeroDivisionError: integer division or modulo by zero I want to format it into: ZeroDivisonError, tmp.py, 1 ...

JavaScript error in Safari, only sometimes...

I have a webpage that is using jQuery to hide divs on the page load and show them later based on user interactions. In my $(document).ready() I execute a bunch of code to hide these divs and to bind a function to the click() handler from jQuery for the regions that trigger showing these divs. It also grabs some values out of the HTML t...

Invalid Variant Operation error

I have an error in my button click, and I can't figure out how to resolve it. This is my code: if (ovElements.item(i).name = 'add') and (ovElements.item(i).type = 'button') and (ovElements.item(i).Value = ' + ') then ovElements.item(i).Click; This is the markup: <td width="20" align="left"><input class="button" style="wi...

Symbol not found: _CFXMLNodeGetInfoPtr when start Instruments

Hi guys, I am developing a iPhone app and everything works fine so far. I can build and start the app in the simulator. But when I now start the app with Instruments I got the error: Dyld Error Message: Symbol not found: _CFXMLNodeGetInfoPtr Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security Expected in:...

How do I avoid reading the byte order mark (BOM) in a Resources file in Visual Studio?

I am trying to use the Visual Studio editor to create XML files in the Resources area of an Assembly in C#. The files appear perfectly correct in the XML editor and honour my schema (recognising the elements and attributes). However when I try to read them (from the Resources) they fail because they consistently have 3 spurious character...

HLSL Compiler error?

float4x4 matInvViewProj; float4 GetPointPosition(float2 Tex0) { float4 PosImageSpace; PosImageSpace.xy = float2(Tex0*2-1); PosImageSpace.z = tex2D(DepthTextureSampler,Tex0).r; return mul(PosImageSpace,matInvViewProj); } That's a part of my pixelshader. Why is there a compiler error? I'm compiling it in ps_3_0. Without ...

Can gcc be configured to not print out a full path in warning/error messages?

When gcc prints out a warning or error, it shows the full path of the file that contains the error. Is there a flag to shorten the output to just the filename? ...

JavaScript error - please help

Using IE 6/7/8, I receive a JavaScript error code. The line of code is: document.getElementById('all').style.backgroundColor = color; The IE 6/7/8 is: Invalid property value Thanks in advance! ...

strange php problem... require_once ignored on windows

strange problem with php on windows... my application loads a 'core' file that loads a settings file, registers autoloads, does initialization etc. at the top of the core file I have include_once("config.php"); this works fine for anything in the current directory, if I include the core file from a separate directory though it just silen...

Radio Button Error Style

I have implemented an error style for textboxes using the following code. This sets a tool tip and puts a nice error image to the right of the textbox if the element reports an error status via an IDataErrorInfo interface: <!-- Set error style for textboxes --> <Style x:Key="txtBoxErrStyle" TargetType="{x:Type TextBox}"> ...

delta copy file copy error

I am using deltacopy for taking backup of my data (files and folder). It is working perfectly and taking incremental back up at scheduled time. Recently i have came across a problem. when i try to copy the backed up data from one location to another location it is throwing an exception that permission not granted or file in use... someth...

filemtime() not working in Windows PHP-CLI

I just got PHP-CLI working on my Windows machine so I could create scripts using PHP. However, I'm trying to write a script to cleanup my Firefox downloads folder of files older than X number of days, but I can't seem to get the filemtime() function working. Here is the function I wrote: function deleteOldFiles($dir, $days) { $mydir...

Not able to use 7-Zip to compress stdin and output with stdout?

I get the error "Not implemented". I want to compress a file using 7-Zip via stdin then take the data via stdout and do more conversions with my application. In the man page it shows this example: % echo foo | 7z a dummy -tgzip -si -so > /dev/null I am using Windows and C#. Results: 7-Zip 4.65 Copyright (c) 1999-2009 Igor Pavlov 2...

When I catch an exception, how do I get the type, file, and line number of the previous frame?

From this question, I'm now doing error handling one level down. That is, I call a function which calls another larger function, and I want where it failed in that larger function, not in the smaller function. Specific example. Code is: import sys, os def workerFunc(): return 4/0 def runTest(): try: print workerFunc() ...

Suppressing "permission denied" errors in Javascript

Hi I have a JS function that polls for the current url in an iframe, the purpose being to ascertain whether or not the iframe is pointing to the same site as the main document. As such, the code is basically: function urlCheck() { var location = document.getElementById('frameid').contentWindow.location.href; if (location) { /...

winsock socket error

followin error in vb6 code: 1) Error(10022) Socket not bound, invalid address or listen is not invoked prior to accept 2) Error 10048 - Address in Use ...

How to get stored procedure @@ERROR value in entity framework ?

Hello, I'm using .NET 3.5 SP1. I have a stored procedure returning a result of a transaction as shown below: Create PROCEDURE SetPrice @itemId int, @price int AS DECLARE @myERROR int -- Local @@ERROR , @myRowCount int -- Local @@ROWCOUNT SET NOCOUNT ON BEGIN TRAN1 UPDATE item_price_table SET price=@price WHERE...

This client is too old to work with working copy

Hey everyone, Everywhere I go on google I get the same answer to this problem but it is the wrong answer for me. Originally I installed Subversion 1.5.6 for windows (i run Windows Server 2008) on my server and i made a repository for a project. Then I used a Tortoise client version 1.6.X on my laptop to update the project. Everything wa...

How to rectify this exception in Blackberry?

Dear Friends,I am reading one text file and writing that content in one BasicEditField .If i try to type some thing in the editfield after writing the content of file, then it throughs a uncaught exception like "net_rim_plazmic_flint (126) is not responding,process terminated "can u pls tell me what is this exception and how to solve th...

invalid use of incomplete type in memory allocation wrapper, GCC only ?

Hey all, I am tracking down what might be a memory leak by globally overloading operator new etc... the code to do so compiles fine under VC++, but throws problems in GCC: 15: namespace std { class bad_alloc; }; 16: 17: void * operator new( size_t size ) throw ( std::bad_alloc ); 18: void operator delete( void * p ) throw (); 19:...