Solved

Data file (Binary) problems with no apparent cause

Posted on 2003-10-28
4
137 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
  • 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying 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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

808 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