By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,219 Members | 2,147 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,219 IT Pros & Developers. It's quick & easy.

Memory cannot be written

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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" <Be******@discussions.microsoft.com> wrote in message
news:EB**********************************@microsof t.com...
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

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.