error

How to save an SDL surface to a PNG and get the colors right?

I wrote up a simple patch to add PNG-saving capabilities to the SDL_Image library. It almost works, too. Problem is, the colors come out all scrambled, and I don't know enough C to figure out what's wrong. Can anyone take a look at this and help me fix it up? Use case: Load a 256-color PNG image with IMG_LoadPNG_RW. Save it with IM...

.net 3.5 running over a intranet

I have a .net 3.5 application that I'm running over an intranet and as far as I know it should "just run" over a mapped drive but I get a SecurityException type "FileIOPermission" this happens when I call File.Open(mCurrentFile, FileMode.Create, FileAccess.Write, FileShare.Read) I can create files on the mapped drive so i do have wri...

Parser error when trying to access the ASP.NET password recovery page?

When I try to access my ASP.NET password recovery page, I get the following error: Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not load ...

clickonce same publish version but assembly version different, update not happening.

Hi I have deployed a clickonce application, in my application i have 10 external dlls. Since the code inside my dll files keeps changing and it's tough to redistribute i went with clickonce deployment strategy. But i wanted to know a thing, if i make a change to one of the dll files and upgrade it's assembly version from 1.0.0.0 to 1.0.0...

Complicated error LNK2005: already defined C++

Hi, I'm getting the LNK2005: already defined in (...) error when building my project in Visual Studio 2008. I've referenced other related questions, but mine seems to be a bit more complicated due if nothing else to the number of files I'm working with. First, I think it will be helpful for me to map out the #include statements I have i...

Windows Service, how can I uninstall from VS Setup project?

Hi There, I have created a windows service, it works great, but as soon as I try to install the service, it removed the directory, however, the service did not get removed, and when I try to install the service again, it give me an error 1001: Service already exists. How can I fix that? And also, is there any code for me to remove the ...

What to do to ensure a productive workflow?

Working regurlarly with a small team, we try to devide the process of making a piece of software regarding each of our professions. Despite the effort to maintain a productive workflow, we tend to run into frequent issues. The most common issues are: version control and keeping things controlled and organized overlapping professions w...

How do you send an Ethernet frame with a corrupt FCS?

I'm not sure if this is even possible since this might be handled in hardware, but I need to send some Ethernet frames with errors in them. I'd like to be able to create runts, jabber, misalignment, and bad FCS errors. I'm working in Python. ...

Apache Ant Build command "Access Denied"

Hey! I am trying to get ant installed and actually already did following this instructions however, I get this error: Buildfile: build.xml does not exist! Build failed which it says there I might get so I just tried executing the next command it says I should(since I'm under Windows it's this one): build -Ddist.dir=<C:\Ant> dist an...

body runat="server" causing compilation error

In a Master Page I have the following markup <body id="body" runat="server"> I have set runat="server" because I need to be able to access the body element in code-behind. I would now like to add a JavaScript function call to the body onload event, like this: <body id="body" runat="server" onload="someJavaScriptFunction();"> Howev...

Pygame Invalid Syntax I just can't figure out.

I've been following a tutorial "McGugan - Beginning Game Development with Python and Pygame (Apress, 2007)" and in the code at around chapter five involving object movement I keep getting invalid syntax alerts on '-' being used in the code. It isn't up to date but I would've thought a subtract wouldn't be changed in any updates due to it...

Issue with compiling a program into an EXE, VB 6

I have recently edited a fellow student's data collection software to my specifications. The program works fine when I run within Visual Basic 6, however ideally I would like to compile the program into an .exe file so I can run it from any PC. However, when I select the option to turn it into an exe, I get the following error while its ...

"No default module defined" error in Zend Framework app

I am in process of making my bootstrap.php file more organized, but after I put everything into separate static methods, I cannot load any page beyond index controller. E.g. if I try to open http://localhost/zftutorial/login/index I get Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid ...

SQL server Error 4060.

4060 "Server rejected the connection; Access to selected database has been denied". How can I troubleshoot this error? ...

Best-practices for processing errors from database in codeigniter

I have a table with a unique key (date + userid) in my webapp database. When i try to insert record with existing date and userid, i'm getting error "dupicate key in table". I turn on database debug in application config, because i need use mysql error number and message. And now i need processing this error. I can use hard coded constan...

Error using HttpWebRequest to upload files with PUT

We've got a .NET 2.0 WinForms app that needs to upload files to an IIS6 Server via WebDav. From time to time we get complaints from a remote office that they get one of the following error messages The underlying connection was closed: an unexpected error occurred on send. The underlying connection was closed: an unexpected error occur...

IE8 profiler what is the ActiveXObject displayed

I have been getting an error on a web page and checking it out with IE8 profiler lists at the top ActiveXObject, only the page is PHP on Apache without any embedded objects; I know I've checked the source. Any ideas as to what the object is :- The browser window hosting the page? Malicious code? Change of image in some type map to an ac...

pthread returns 251

pthread_create returns the value 251 without creating the thread. Does anyone know what the problem is? Please help. The machine is a HP-UX. I'm new to multi-threading. #include <stdio.h> #include <stdlib.h> #include <pthread.h> void *print_message_function( void *ptr ); main() { pthread_t thread1, threa...

Flex & WCF - Enum problem

I have a WCF service operation that accepts a data contract parameter of custom type MyQuery -- function Search(q as MyQuery). The MyQuery object contains 2 properties: MyQuery.SearchPhrase (string) MyQuery.SearchType (custom enum SearchTypeEnum) I also have a Flex client application that consumes this service. But when Flex invokes ...

json-framework doesn't work with iPhone SDK 3.0

I can't seem to get my app to compile when using JSON-framework http://code.google.com/p/json-framework/ with iPhone SDK 3.0. My app compiles fine for the simulator, but when I go to compile for my device I get a 'codesign error' code 1. I've followed all of the installation instructions correctly, and when I remove the 'Additional SDK'...