corruption

is there any better algorithm of crc32 to check corruption of data?

i am receiving packets from a terminal device and then upon receiving packets on host side, i use crc32 algo to generate mac for packet data so that i can check is there any corruption of data during transfer of packet from terminal to host.Is crc32 reliable for this purpose or is there some better algorithm? ...

_CrtCheckMemory before and after function return

hi! following code: _CrtCheckMemory(); vector<Vector3> samples = PoissonDisk::generate_poisson(m_resX-1, m_resY-1, minDist, 30, m_samples); _CrtCheckMemory(); int s = samples.size(); the debugger traps into the heapcheck function in the second _CrtCheckMemory() telling me there's something wrong with the heap - so my assumption is th...

collections on appdelegate get stomped

I am a 15 year veteran of C++ and thought I could easily handle the memory issues on the iPhone. But I have been humbled by this new environment at several turns. Here is my problem. I hope I am asking the question correctly. Basically, I am keeping a mutable array of my common object at the appdelegate. This seems like the reasonab...

libzip corrupting PNG files when compressed on iPhone device, but not in Simulator

Hi, I've inherited a project that at some point creates a zip file, adds an XML file to the zip and then adds a number of PNG files to the same archive. All works fine on the simulator, but whenever I run the same code on the device itself the resulting png files are altered and unopenable when opened on my Mac. They still appear to b...

Maven downloads corrupted Jars

I am running into a maven problem that's killing all my hairs. So at the beginning all my maven project works fine. And then when I switched to a new computer today and trying to compile them all. The first error I see from Eclipse is IO error reading jar files from the local maven repository. Then I googled and someone suggested thi...

WM_SETFOCUS Event not fired Microsoft Access 2000

First some context: I have a Microsoft Access 2000 project (ADP file) accessing a SQL Server 2000 Database. The main form of that application has a lot of controls and subforms. On one of the subforms which contain a summary of some information about companies, each record has two buttons that lead to a search form that access a web ser...

Weird corruption problem with http uploads

My brother has a computer running Windows XP with SP2 installed. His computer was behaving badly (very old installation of Win) and one of the problems was that he could not upload jpegs to Facebook, for example. The upload would complete, but the images are garbled. Finally I decided it was time to format his computer and reinstall w...

Can you recover from a "Resource 1 not found"? in Delphi 2010

A fairly complex project was muddling along with lots of work done last night when I decided to turn in. But thinking about adding some gestures got me up after three hours of sleep and I went at the code again, which was a mistake. I added the gesture manager and then sleepily hit the F1 key to look up the help on gestures. Coming back ...

Debugging parameter corruption in C++?

I've got a plugin system in my project (running on linux), and part of this is that plugins have a "run" method such as: void run(int argc, char* argv[]); I'm calling my plugin and go to check my argv array (after doing a bunch of other stuff), and the array is corrupted. I can print the values out at the top of the function, and the...

SQL Server 2005 SSIS Data Transfer SQL to Excel Corrupts Excel File

I have an SSIS package that exports data from a table on a SQL Server 2005 database to an Excel Spreadsheet. The spreadsheet in question has 15 sheets, and I am trying to populate values on one of these sheets. I have a template file which I clone to be the target for the export (a simple file system task). This template file is valid, ...

Rows between two index entries?

Hello stackoverflow! First time poster here. I'm having problems re-importing a database dump made by mysqldump. I ran mysqldump with the order-by-primary option, and I had it run on a table with a unique key (and no explicit primary key, so it sorted by that unique key). My objective in this case was to re-create the table, making the u...

Strange PHP output corruption

I'm having a very strange output corruption on one of my PHP sites. Sometimes, a piece of HTML code is displayed, rather than the tags being interpreted. It looks like some characters are missing, messing up the tags. See the example below: the second line should just be a link to c1, but due to some reason part of the target URL is show...

Can you please explain this C++ delete problem?

I have the following code: std::string F() { WideString ws = GetMyWideString(); std::string ret; StringUtils::ConvertWideStringToUTF8(ws, ret); return ret; } WideString is a third-party class, so are StringUtils. They are a blackbox to me. Second parameter is passed by reference. When I step through the debugger the line ret...

MySQL Corruption After Graceful Restart

Has anyone ever encountered MySQL corruption after performing a graceful server reboot? Just worries me because I have never had that happen before. What could be the causes? ...

Mass verify svn repositories

Hi I'm wondering if there is a tool (can be commercial) to mass verify svn repositories. I know about using svnadmin but there are about 100 repositories and it's tedious to check whether if there's actually a corruption. I'm looking for something that can run in the background periodically and alert if there is a corruption. ...

Outlook 2007: Cannot open your default e-mail folders. The File C:\xxxxx outlook.ost is not an offline folder file.

We know the quick solution to this issue, but the occurance of this error has become much more widespread across our network in the last month. Whereas previously we've experienced this error on a machine once or twice a month, we now experience this issue on multiple laptops 2-3 times a day! This is becomming extrememly problematic fo...

Problem with averaging corrupted images to eliminate the noise in MATLAB

I want to average some .jpg images which are corrupted by zero-mean Gaussian additive noise. After searching around, I figured out to add the image matrices and divide the sum by the number of matrices. However, the resultant image is totally black. Normally when the number of image increases then the resultant image gets better. But whe...

iPhone file corruption

Is it possible (on iPhone/iPod Touch) for a file written like this: if (FILE* file = fopen(filename, "wb")) { fwrite(buf, buf_size, 1, file); fclose(file); } to get corrupted, e.g. when app is forced to terminate? From what I know fwrite should be an atomic operation, so when I write whole file with one instruction no corrup...

Weird call stack when application has frozen

I apparently have an dead lock problem in one of my applications and started investigating EurekaLog stack traces. Here's one recent: Call Stack Information: -------------------------------------------------------------------------------------------------------------------------------------- |Address |Module |Unit ...

PHP IIS problems downloading file says it is corrupt

Hi, I am running PHP on IIS 6 with mssql. I have uploaded a file to my webserver through a php script. Upon checking the file on the server the file is ok and not corrupt. However, when i then have a link on my website to try and download the file, it says the file is corrupt. I know the file isnt corrupt as i can view it perfectly i...