Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am writing a program which reads a excel file. This excel file gets updated in every 2 minutes. and I have to display this updated excel data in the program.

What I have code, works well for the first time, but when the excel file gets updated and I try to read that, my application generates an exception as

"Attempted to read or write protected memory"

Please help..

Thanks in Advance..
Posted
Comments
Sergey Alexandrovich Kryukov 9-Feb-12 0:08am    
Insufficient information. A (short!) code sample can help. (Use "Improve question" above, format properly.)
--SA
ZurdoDev 9-Feb-12 10:55am    
Sounds like you are not releasing a file lock or are trying to read while some other process is updating it. Sounds like you also need to give some more information so someone can actually help you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900