Memory cannot be written

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
Sounds like your C++ DLL may have done something it shouldnt have !

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing

Bebandit said:
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???
 
Back
Top