Solved

Data file (Binary) problems with no apparent cause

Posted on 2003-10-28
4
139 Views
Last Modified: 2010-05-03
I'm working on a project for company that needs to keep a tight lock on it's data and also asked that I do it in vb5 or vb6. I have used vb5.

I am experiencing intermitent data corruption using  a UDT to move the type to my .bas file to process the information, and  the traditional Put# and Get# methods for file I/O.

The variable Declarations are Dim'ed properly.
and  any data passed is an  Integer to keep the 2 byte record length at the Languages specified length.

But the data file when viewed is sometimes corrupted, correct, and now showing a 4 byte length for the record length.

I have kept to MS vb5 standards and double  checked myself by
making sure I updated to service pack 3, then researched this through VB 3, 5 Programmers Guide, VB 3, 5 Waite Superbible and multiple web sites.

I believe that my problem may not be coding but a problem with the Language itself.
Please advise
0
Comment
Question by:Mark__M
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 63 total points
ID: 9644320
Difficult to hazard a guess.  Try posting the relevant code.

Anthony
0
 
LVL 3

Assisted Solution

by:kenspencer
kenspencer earned 62 total points
ID: 9645378
Observing ...

Ken
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 10174952
Now that is really asinine.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Macro: print each sheet to pdf using ExportAsFixedFormat 11 71
Help me. 3 79
Error with a code discussed on this page 5 51
adding "ungroup sheets" to existing vbs code 5 75
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question