Solved

Data file (Binary) problems with no apparent cause

Posted on 2003-10-28
4
134 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
Comment Utility
Difficult to hazard a guess.  Try posting the relevant code.

Anthony
0
 
LVL 3

Assisted Solution

by:kenspencer
kenspencer earned 62 total points
Comment Utility
Observing ...

Ken
0
 
LVL 75

Expert Comment

by:Anthony Perkins
Comment Utility
Now that is really asinine.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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 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…

771 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now