Click here to Skip to main content
15,885,868 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When acquire the mining results, I got an error
"Try to read or write protection memory. this usually indicates other memory has been damaged"

The following is my code:
Microsoft.AnalysisServices.System.DataMining.AssociationRules asrule = new Microsoft.AnalysisServices.System.DataMining.AssociationRules();
DataTable dtResult = new DataTable(); 
asrule.GetHashCode(); // I think there is no problem in this line  
//The following occurs problem 
dtResult = asrule.GetItemsets("Table1", 0, 0, 1, 0, (double)0.01, "", true);

Here cue “Try to read or write protection memory. this usually indicates other memory has been damaged”


The results of debugging:
PFSetLastError(Int32 , PF_External , UInt16* , UInt16* , UInt64 )\r\n  
PFSetLastError(Int32 in_hrError, UInt16* in_szNote, UInt16* in_szTag, UInt64 in_mskState)\r\n  
Microsoft.AnalysisServices.AdomdServer.g_GetMDContext()\r\n 
Microsoft.AnalysisServices.AdomdServer.Context.get_ExecuteForPrepare()\r\n  
Microsoft.AnalysisServices.System.DataMining.AssociationRules.GetItemsets(String miningModel, Int32 start, Int32 end, Int32 o, Int32 minSize, Double minSupport, String filter, Boolean in_fStripTableName)\r\n 
webLogMiningResult.Form1.GetModelResult()  F:\\test\\webLogMiningResult\\webLogMiningResult\\Form1.cs:row 58\r\n  webLogMiningResult.Form1..ctor()  F:\\test\\webLogMiningResult\\webLogMiningResult\\Form1.cs:row 22\r\n 
webLogMiningResult.Program.Main()  F:\\test\\webLogMiningResult\\webLogMiningResult\\Program.cs:row 18\r\n  System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)\r\n  
System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)\r\n 
Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()\r\n 
System.Threading.ThreadHelper.ThreadStart_Context(Object state)\r\n  
System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n 
System.Threading.ThreadHelper.ThreadStart()"


I load the function of Microsoft.AnalysisServices.System.DataMining.AssociationRules.
From the returned stack,the error occurs in
Microsoft.AnalysisServices.AdomdServer.g_GetMDContext()
that is this class: msmgdsrv.dll

Does anyone know the solution? Hope you could give me some help.Thanks.

Note: the environment is
windows server 2003 sp2
sqlserver 2005 sp3
visual studio 2008 sq3
Posted
Updated 7-Jun-10 9:14am
v3

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