S
sushant
Hi All,
I have one .net application, runs as service under localsystem
account. This application use dllimport to call a method of C dll,
which basically reads a huge file (1GB or more) and generate some xml
string as needed.This works fine most of the time but sometimes we see
exception "Attempted to read/write protected memory. This is often
indication that other memoyr is corrupt" when my app tries to read the
xml string. This is independent of file size as we see it for smaller
files as well. Please note that, dll access the files from network.
After 3-4 attempts, the error vanishes, and application runs properly.
Also we logged the XML string from C dll, just before return
statement, and it comes fine everytime. Probably i am doing something
wrong in implementation.
This exception comes more in vista than XP.
Please suggest.
regards,
hungrymind
www.hungrymind-concepts.com
I have one .net application, runs as service under localsystem
account. This application use dllimport to call a method of C dll,
which basically reads a huge file (1GB or more) and generate some xml
string as needed.This works fine most of the time but sometimes we see
exception "Attempted to read/write protected memory. This is often
indication that other memoyr is corrupt" when my app tries to read the
xml string. This is independent of file size as we see it for smaller
files as well. Please note that, dll access the files from network.
After 3-4 attempts, the error vanishes, and application runs properly.
Also we logged the XML string from C dll, just before return
statement, and it comes fine everytime. Probably i am doing something
wrong in implementation.
This exception comes more in vista than XP.
Please suggest.
regards,
hungrymind
www.hungrymind-concepts.com