corruption

RandomAccessFile.write not writing what I tell it to

Hey all. I'm reading from one sql-format file to another, and two bytes in the middle are being corrupted, and I assume it's some preparation or safeguard that I didn't do. Example of corrupted data: //From the file that is read from. added ** to emphasize the corrupted byte insert into viruses (virusSig,virusHash) values ( X'579fdc56...

ADODB Recordset.Recordcount corruption with oracle (ASP)

For some unknown reason, when I try to read the RecordCount property from an ADODB.Recordset object in ASP it causes strange data corruption that doesn't appear to follow any particular pattern that I can find. I'm using ASP to connect to an Oracle 10g database. The following is the code I am using. c_objRS.Open strSql, objPage.objCn,...

CVS checkout ignore corrupted files

Is there a way to have CVS checkout everything and if it hits corrupted files it will just skip them and go on? ...

Tracing memory corruption on a production linux server

Guys, could you please recommend a tool for spotting a memory corruption on a production multithreaded server built with c++ and working under linux x86_64? I'm currently facing the following problem : every several hours my server crashes with a segfault and the core dump shows that error happens in malloc/calloc which is definitely a s...

Heap corruption

Why is it a problem if we have a huge piece of code between new and delete of a char array. Example void this_is_bad() /* You wouldn't believe how often this kind of code can be found */ { char *p = new char[5]; /* spend some cycles in the memory manager */ /* do some stuff with p */ delete[] p; /* spend some more cycles,...

generic way to detect file corruption using C#?

I'm looking for a way to detect file corruption using C#. Maybe this is too vague, but I'm not looking for specific types of corruption, just wondering if there's a way to detect that a file has been corrupted in general. Anyone know if this is possible and if so how you'd do it in C#? Thanks. ...

zlib decompression in python

Okay so I have some data streams compressed by python's (2.6) zlib.compress() function. When I try to decompress them, some of them won't decompress (zlib error -5, which seems to be a "buffer error", no idea what to make of that). At first, I thought I was done, but I realized that all the ones I couldn't decompress started with 0x78DA ...

Corrupt Form - Rescue or Remake?

During my work on this database application, I've apparently managed to corrupt a form in the application - attempting to save any edit to any field on the form will cause Access to crash, and for the database file to report corrupted when Access attempts to re-open it. I've tried exporting the entire form + controls as text, then re-im...

Rescuing corrupted characters in database

I have just imported a huge MySQL database. Most fields are latin1_swedish_ci, and they contain lots of corrupted strings. e.g. Cavit Y�r�kl� instead of Cavit Yürüklü I have been trying to find a solution to fix these corruptions using PHP as thats all I know a little bit of. I have played unsuccessfully with utf8_(en|de...

fatal: git-write-tree: error building trees

I'm trying to import a large subversion repository into git using git-svn (so that I can work in git but still dcommit to subversion from time to time). After importing more than 4000 revisions I'm now getting the following error whenever I run git svn fetch or git svn rebase, which I don't manage to get rid of: $ git svn fetch error: i...

File corrupted?

Hi All, I have a form, MainForm, which was working just fine and dandy until earlier this morning. I made some code modifications to a different form and when I went to run the application, I received an error in MainForm (error is irrelevant). I went into MainForm to see what the problem was and was horrified at what I saw... ALL MY ...

did DBCC CHECKDB

Help getting crushed by this i did DBCC CHECKDB and one of the DB gave Msg 823, Level 24, State 2, Line 2 I/O error 21(The device is not ready.) detected during read at offset 0x0000000001c000 in file 'E:\MSSQL2000\Data\FTSWE_Data.MDF'. I was working on a remote server, from my, local host accessing a remote DB. Also i was on VPN. ...

Corrupted column in database

I have a SQL Server database. One of the tables has a column that, for lack of a better word, is acting corrupted. I can select * or even select that specific column and it works fine. I can perform functions like count, order by and group by on all other columns with no problems. But if I try and do one of those functions on this one co...

What can cause SVN Update to merge incorrectly?

I got an email a few days ago from someone who was having trouble building a Delphi project I have on Google Code. The project file and one of the DFM files were munged after he updated with some changes I had checked in. We talked back and forth a bit, and traced it down to what he said was SVN throwing in extra stuff. He deleted the...

Events not working in MS-Access

The database that I am working on (in MS-Access XP) seems to have become corrupted somehow. It no longer supports any events - clicks, change, update events, nothing seems to work. This is the error that I get: What can I do to make events start working again? I have tried Tools->Database Utilities->Compact and Repair Database..., bu...

Repairing corrupt memos on dbase files.

Has anybody had a good experience and success with "repair tools"? Especially free tools! ...

How to get the root cause of a memory corruption in a embedded environment ?

Hello, I have detected a memory corruption in my embedded environment (my program is running on a set top box with a proprietary OS ). but I couldn't get the root cause of it. the memory corruption , itself, is detected after a stress test of launching and exiting an application multiple times. giving that I couldn't set a memory break ...

Problem with priority_queue - Writing memory after heap

Hello again, I am trying to use priority_queue, and program constantly fails with error message HEAP CORRUPTION DETECTED. here are the snippets: class CQueue { ... priority_queue<Message, deque<Message>, less<deque<Message>::value_type> > m_messages; ...}; class Message has overloaded operators > and < Here I fill up ...

iPhone OS memory problem - how to debug?

I have a pretty weird problem in my iPhone app which is, I think, related to memory getting corrupted: At one point, I need to sort an array, which I do with -[sortArrayUsingFunction]. The result is not correct unless I either allocate some memory with something like void *test = malloc(2 * sizeof( int )) before the method call or hav...

String corruption and nonprintable characters using XML::Twig in Win32 Perl

This is a really weird problem. It's taken me practically all day to whittle it down to a small executable script that demonstrates the problem fully. Problem Summary: I'm using XML::Twig to pull a data snippet from an XML file, then I'm sticking that data snippet into the middle of another piece of data, let's call it parent data. ...