Results 1 to 4 of 4

Thread: I'll take any logical answer at this point....

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2002
    Posts
    142

    I'll take any logical answer at this point....

    I have an application that takes in data in from a serial port and then writes it to file (through a file stream). It then closes the file stream and opens a data reader. The data reader opens the file and reads the file into arrays using the spilt method.

    Long story short, the arrays are passed to a dll (written in C++) and an aray is returned. The Arrays are also put into strings and inserted into an Access database (for future replay). The arrays are also graphed. After the arrays come back from the DLL, some data is updated in another table in the access database.

    I get the error "Application error - The Instruction at "0x77f5234e" referenced memory at "0x00000000". the memory could not be "written". This happens right as the former tasks are being called.

    This is a system error, I think. This error comes up when the computer has been running for a while. It will never happen in Visual Studio, but only when the Application is installed. Any ideas what the culprit might be???

    One guess is that the computer is trying to open the file to read the data, but the computer has not been able to close the file yet???

    Thanks,
    Bebandit

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    If you compile the application in debug mode, can you find out more information? e.g. the line it occurs on etc.
    Would having the system reboot nightly fix the problem?
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2002
    Posts
    142

    Unfortunately, No....

    Unfortunately, No. I did try that and can not get any information from the program at all. As far as rebooting the machine. It sometimes happens in less than a half hour so I will need to find a remedy. Thank you for your thoughts. I am still baffled???

  4. #4
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780
    Does it complete the whole loop at least once ? Does the app only crash after x amount of loops, or is it a random time ? Is it always after a certain data has been processed, or tried to be processed.

    If you can output the data being processed and where you are in the code to a file on disk, then you can always check how far it got, and what data was being processed, it should give you at least some chance of finding a pattern.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width