Hi,
I have a method which uses a binarywriter to write a record consisting of few uints and a byte array to a file. This method executes about a dozen times a second as part of my program. The code is below:
iLogFileMutex.WaitOne();
using (BinaryWriter iBinaryWriter = new BinaryWriter(File.Open(iMainLogFilename, FileMode.OpenOrCreate,...
I'm using code largely from cimgf to update the order of my rows in a UITableViewController table that is displayed through pushViewController. The sample code works great, but in my project, when I move the rows, they disappear, get screwed up, or get stuck (eg: http://sites.google.com/site/basicmjc/home/uiviewcorrupt.png).
Below is so...
We have a C# service that has started failing in very odd ways around thread handles. Specifically calls to EventWaitHandle.Reset, ReaderWriterLock calls, and other similar threading calls are randomly blowing up with Invalid Handle errors deep in the stack. These are calls that are definately supposed to work. Could this be a sign of me...
I would like to verify my Core Data store (SQLite file) before loading it so that if there is any corruption, the app won't simply crash and burn. Using the iPhone SDK, is there a way to verify an SQLite file (1) generally that it is not corrupted, and (2) more specifically, whether or not the SQLite file matches one of the possible data...
I have a big application that uses the dynamically loaded libraries. At the end of program while terminating it either segfaults or spits a message "glibc detected corrupted double-linked list". Looking at the valgrind output I think this is what the case is:
let say we have three files:
utilities.c - compiled with -fPIC and used...
We have the following problem while running the git fsck --full --strict command:
error: sha1 mismatch ced885d12a0677f2db9025e1e684c72e67283fcd
error: ced885d12a0677f2db9025e1e684c72e67283fcd: object corrupt or missing
error: sha1 mismatch cf5a1546bd2de5611eaf6136fb5ca02b4e358bec
error: cf5a1546bd2de5611eaf6136fb5ca02b4e358bec: object...
In the SQLite documentation on the write-ahead-log feature introduced in version 3.7, there are some comments which confused me a bit.
The linked page says "syncing the content to the disk is not required, as long as the application is willing to sacrifice durability following a power loss". Then a couple of paragraphs down, it says "C...
I use C#, VS 2008, winforms app, for download images JPG, automatized way.
Some images haven't downloaded right. I think many bytes (more 70% bytes of image corrupted) not write well in filesystem (folder). I try view the image JPG "corrupt" (using Preview view in WinXP) and I can view 20%-30% of imagen,but 70%-80% is wrong, and I see ...
It's a little difficult to explain the offending piece of code, as there seems to be some degree of stack corruption, and all the code's pretty linked together (it's a game). If you're looking for a headache and some debugging, please check out the segfault branch on
git://github.com/RobotGymnast/Gingerbread.git and see if you can find ...
Now this has happened to me twice this week alone: when I press Ctrl+Z a number of times in RAD Studio 2009, the editor buffer gets corrupted. The current and nearby lines get filled with nonsense data, and sometimes a breakpoint is created (autobugically). And there is a EAccessViolationin the IDE, which then terminates. All unsaved cod...
I'm not sure what is the root cause for getting such error(Heap Corruption) from the below code. When i step through the program, the TCHAR value is properly allocated and copied to the clipboard data. However, it crash when it proceed to SetClipboardData(...).
Can any guru help to spot the error?
Thanks in advance.
Error Dialog:
...
Hello all.
I have an extremely strange bug.
I have two applications that communicate over TCP/IP.
Application A is the server, and application B is the client.
Application A sends a bunch of float values to application B every 100 milliseconds.
The bug is the following: sometimes some of the float values received by application B a...
i'm getting an error - heap corruption, can't figure out why.
my base :
h:
class Base
{
public :
Base(char* baseName, char* cityName);
virtual ~Base();
list<Vehicle*>::const_iterator GetEndList();
void PrintAllVehicles(ofstream &ResultFile) const;
char* GetBaseName() const;
char* GetLocation() const;
v...
I use three servlets to serve files for download:
ByteArrayDownloadServlet: used for small files, such as reports or files from database
FileDownloadServlet: used for small to large files
MultipleFileDownloadServlet: create a zip with the requested files and stream it
They are based in the following implementation:
link text
I have ...
If my JSF applications, I'll sometimes come across a bug that, for example, corrupts a user session bean somewhere and the user is stuck looking @ a bunch of java exception gobbly-gook on their screen. The only way they can fix this is to restart their browser.
Instead, I would like the application to handle something like this gracefu...
I am extensively using H2 database for my project (lots of inserts and selects) and I have noticed that in the database directory appear binary files which have the name:
database.xx.log.db.corrupt, where xx - a number.
Does anybody know if there are possibility to understand what this file stands for and why it appears?
...
Hello,
Does anyone have any ideas for how to pragmatically quickly check if a zip file is corrupted based on file size? Ideally the best way to check if a zip is corrupted is to do a CRC check but this can take a long time especially if there is a lot of large zip files. I would be happy just to be able to do a quick file size or header...
I am running Django behind nginx using FastCGI. I have discovered that in some of the responses sent to the client, random data corruption is occurring in the middle of the responses (might be a couple hundred bytes or so in the middle).
At this point I have narrowed it down to either being a bug in either nginx's FastCGI handler or Dj...
What is the most suitable hash function for file integrity checking (checksums) to detect corruption?
I need to consider the following:
Wide range of file size (1 kb to 10GB+)
Lots of different file types
Large collection of files (+/-100 TB and growing)
Do larger files require higher digest sizes (SHA-1 vs SHA 512)?
I see that the S...
Hi all, I am having a runtime error that I can not for the life of me figure out. My program almost does what I want it to, but there are some corrupted characters that print out as gibberish. The program is supposed to take in a text file that represents a forest of trees, build the forest of trees, then traverse the forest to print i...