Click here to Skip to main content
15,893,644 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi,
I was trying to Start a diadem instance using a VC dll from my vb .net code. I'm getting the following error.

**System.AccessViolationException was unhandled 
  Message="Attempted to read or write protected memory. This is often an indication that other memory is corrupt." 
  Source="SDAS" 
  StackTrace: 
      at SDAS.SDAS.Program.InvokeDIAdemUsingDLL(String sParamTestNo) in C:\Projects\SDAS\Program.vb:line 588     
      at SDAS.SDAS.Program.MonitorPath() in C:\Projects\SDAS\Program.vb:line 267 
      at SDAS.SDAS.Program.Main() in C:\Projects\SDAS\Program.vb:line 125 
      at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args) 
      at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) 
      at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() 
      at System.Threading.ThreadHelper.ThreadStart_Context(Object state) 
      at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 
      at System.Threading.ThreadHelper.ThreadStart() 
  InnerException:** 

Also, to add this code was working fine in Windows XP. Now my OS has upgraded to WIndows 7.
.NET development is being done with VS2008.

I'm running the application as Administrator. Kindly help me to sort this .

With regards Snake
Posted
Updated 25-Jul-10 23:46pm
v2
Comments
bjames02 4-Aug-10 21:51pm    
Windows Vista and 7 do not like COM / activex very much. I've ran into the same issue embedding a .NET usercontrol wrapped as a com object inside of a webpage. Still no answer..

Good luck..

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