Click here to Skip to main content
15,902,198 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Trying to run a report gives a System.AccessViolationException only on XP machines.
I've tried various things I've found on forums to no avail...can anyone help??

Visual Studio 2010
Compiled for .Net Framework 2.0
X86
Access DB with link tables to SQL DB
Crystal Reports

Error with one report but not with others that go through same/similar code

System.AccessViolationException occurred
Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Source=dao

Cannot load DLL: '卍䑒㉏⸰䱄Lߑ'

I've added in the line of code I believe it falls over on but I have to stress that other reports run through this code with no problem and the report that fails only does so on XP machines!

VB
rs = d.OpenRecordset(strSQL, IIf(blnSnapShort, dao.RecordsetTypeEnum.dbOpenSnapshot, dao.RecordsetTypeEnum.dbOpenDynaset), IIf(blnReadOnly, dao.RecordsetOptionEnum.dbReadOnly, dao.RecordsetOptionEnum.dbSeeChanges))
Posted
Updated 2-Apr-12 5:45am
v4
Comments
OriginalGriff 2-Apr-12 10:36am    
Without the relevant code fragment, we would be just guessing...
Use the "Improve question" widget to edit your question and provide better information.
woopsydoozy 2-Apr-12 11:45am    
A swastika in the DLL name? Clearly Nazis have infiltrated your machine.
Sergey Alexandrovich Kryukov 2-Apr-12 12:44pm    
I hope you know, but just in case: original swastika has nothing to do with Nazi or any kind or European fascism as we know it.
The Nazi adopted swastika to symbolize their alleged association with Arian "race", which is also, in view of modern results in human genome researches, also quite questionable; I don't even want to seriously discuss ridiculous "race theories" in practice associated with hatred and genocide based on anthropological and ethnic characteristics of people.
Please see:
http://en.wikipedia.org/wiki/Swastika

In view of this information, I think that, despite off all those historical controversies and legal limitations, the swastika itself should not be associated with the hatred and genocide mentioned above. The really existing ideas and views disseminating hatred need to be strongly opposed, but not the casual symbols associated with them in some historical or modern political contexts.

--SA
Louisam 2-Apr-12 13:07pm    
Also a Chinese character representing budhism and i'm trying to stay zen about my problem :)
Maciej Los 17-Apr-12 14:03pm    
.NET 2.0 and DAO? :( Try to redistribute DAO 3.6. If you want to know is it better to use ADO or DAO read this article.

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