invalid

The 'invalid field type' error with TClientDataSets I don't understand

Hi I use nested database stuctures with TClientDataSets. I'm new to programming so my lingo is ten-to-one wrong. My problem is as follows: I defined my database stucture and all the fields of the nested stuctures and then I called the CreatDataSet method of the master clientDataSet and it worked. I then wanted to add another data fiel...

Invalid token 'while' in class, struct, or interface member declaration in very simple code

Hi there, I am not sure what the problem is but I keep receiving this error when I try to use a while statement in my code. Invalid token 'while' in class, struct, or interface member declaration I want to use a while loop to have something continuously update while a statement is true. The rest of my code is rather long but w...

C++ standard template library priority queue throws exception with message "Invalid Heap"

Using the STL's priority_queue I get the error "invalid heap" as soon as I try to use pop(). I can push my values into the queue, the top() of the queue is what I would expect and accessible. pop(), when it goes to re-heap, seems to have a problem. I am storing pointers to a templated class in the queue. I have the comparision overloade...

Try/Catch a segmentation fault on Linux

I have a Linux C++ application and I'd like to test an object pointer for validity before dereferencing it. However try/catch doesn't work for this on Linux because of the segmentation fault. How can this be done? ...

Invalid arguments

i am expanding on the XNA game studio 2D tutorial and adding menus from the microsoft XNA Game studio website. i thought it would be just plug in and run, but is much more complicated than i thought. here is one error, i will post more as i get them. Here is the debug window: C:\Users\Ian\Desktop\GameStateManagementSample - Copy\GameSta...

What Situations Cause Oracle Packages to Become Invalid?

The scenario that created this question: We have a package that is a dependency of another package, sometimes making changes to the "parent" package causes the dependent package to become invalid, but sometimes it doesn't. It has caught us by surprise before. It would be very useful to simply understand what causes invalidation so...

Erratic Invalid Viewstate issue in a .NET application

I seem to be getting a "invalid viewstate" every now and then in the event viewer for my ASP.NET application. Most of them (95%) seem to be referencing ScriptResource.axd (the application uses the ASP.NET AJAX library). There is no way I can remove the Ajax library either as Ajax is used everywhere.. How can I reduce these errors? I'...

XSLT and XQuery on invalid html input, pieces of URI look like entities

I'm using Saxon 9 to analyze invalid html sources. Specifically the html has href values like the following: <a href="blah.asp?fn=view&g_varID=1234">some text</a> I'm getting errors: "Error reported by XML parser: The reference to entity "g_varID" must end with the ';' delimiter." The xml parser is reading the "&g_varID" string and...

JavaBean problem

Hello. I have two JSPs and a JavaBean that aren't working. This is a problem that's probably very common to newbies, so please forgive me if this has been answered in this forum. I've Googled all over the place for an answer to this, and although I'm not the only one who's ever had this problem, I can't seem to figure out what my prob...

PHP: Detect invalid characters in a text

Hello! I would like to parse user inputs with PHP. I need a function which tells me if there are invalid characters in the text or not. My draft looks as follows: <?php function contains_invalid_characters($text) { for ($i = 0; $i < 3; $i++) { $text = html_entity_decode($text); // decode html entities } // loop is used ...

Invalid or corupt jarfile

I tried to create a jar file from a java project, which uses some external jars. I created a lib folder and put all the jars I need there. I run the project in eclipse by adding all the jars in the lib folder to the Build Path and it works ok. When I try to create the jar with ant from build.xml, it seems ok, no error is shown. When I...

The format of message was invaild in SQL WebMerge Replication

Hi, We are looking into web synchronization between SQL2005 standard & offline clients using Express2005. When I create subscription and synchronize for first time it works fine. But when I reintialize the subscription and synchronize it is giving me below error. "The format of a message during Web synchronization was invalid. Ensure ...

In PHP, approaches to reduce bots submit form and invalid email accounts?

I know its kinda common question, but I cant find a best answer (for now)... What are the best approaches to reduce bots submit form and invalid email accounts in php and html? Bots - capthca? hidden css? what else? Invalid Email - This is truely insane job. How can I detect if the user type: [email protected], then i said the email is ...

ASP.NET UpdatePanel throwing "Invalid Postback" exception for Repeater buttons

I have a simple repeater inside of an UpdatePanel that contains a label and two image buttons. The OnClick property is set in the attributes of each button at design time. When I click either of the buttons, I recieve the "Invalid postback or callback argument. Event validation is enabled........". I have done the exact same thing in oth...

java.lang.InternalError: Location with invalid code index... What?

I am creating a j2me application, and when I try to debug it in netbeans, I get an error when I reach a point in my code. The code is as follows class MyClass{ public MyClass() { OtherClass oc = new OtherClass(); oc.MyMethod(); } } The other method is as follows: public void MyMethod() { boolean isVal...

XML Schema validation

Why won't this xml schema validate ? Visual studio says that the simpleContent tag is an invalid tag. If I then remove the attribute it says that the base type for my restriction is undefined in http://www.w3.org/2001/XMLSchema <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" > <xs:complexType name="Person"> <xs:at...

Detecting an "invalid date" Date instance in JavaScript

I'd like to tell the difference between valid and invalid date objects in JS, but couldn't figure out how: var d = new Date("foo"); console.log(d.toString()); // shows 'Invalid Date' console.log(typeof d); // shows 'object' console.log(d instanceof Date); // shows 'true' Any ideas for writing an isValidDate function? EDIT - thanks fo...

wget - http://: Invalid host name.

I'm using wget to automatically download the ShellEd extension for Eclipse, but am receiving an error: http://: Invalid host name. I have used it successfully several times before, so I think it's because SourceForge uses a mirror. I've looked at the man page for wget, focusing on referer and http_proxy, but am still unsuccessful. H...

Invalid JSON parsing using PHP

I'm pulling a JSON feed that is invalid JSON. It's missing quotes entirely. I've tried a few things, like explode() and str_replace(), to get the string looking a little bit more like valid JSON, but with an associate JSON string inside, it generally gets screwed up. Here's an example: id:43015,name:'John Doe',level:15,systems:[{t:6,gl...

Error while fetching Data in form of XML from SQL Server Database

I have a Multi-tier ASP.NET application. In which am reading data from SQL Server 2005. Am fetching XML data directly from database using "FOR XML AUTO,ELEMENTS" suffix in my query. The problem is some SQL records contain data with invalid chars (like hex values) which throws error while reading it using the XMLReader obtained by executi...