I am running the below code to simulate load. I launch a number of
console apps at the same time. However after about 2 I get the error
below. Am I doing something wrong? Thanks
Microsoft.Isam.Esent.Interop.EsentErrorException was unhandled
Message="Error InvalidParameter (JET_errInvalidParameter, Invalid
API parameter)"
Source="Esent.Interop"
ErrorDescription="JET_errInvalidParameter, Invalid API parameter"
StackTrace:
at Microsoft.Isam.Esent.Interop.Api.Check(Int32 err)
at Microsoft.Isam.Esent.Interop.Api.JetTerm(JET_INSTANCE
instance)
at Rhino.PersistentHashTable.PersistentHashTable.Dispose() in c:
\Dev\rhino-tools\pht\Rhino.PersistentHashTable
\PersistentHashTable.cs:line 132
at Rhino.PersistentHashTable.PersistentHashTable.Initialize()
in c:\Dev\rhino-tools\pht\Rhino.PersistentHashTable
\PersistentHashTable.cs:line 42
at ConsoleApplication1.Program.Main(String[] args) in C:
\Documents and Settings\Administrator\My Documents\Visual Studio
2008\Projects\ConsoleApplication1\ConsoleApplication1\Program.cs:line
28
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:
for (int i = 0; i < 50000; i++)
{
using (var table = new PersistentHashTable
(testDatabase))
{
table.Initialize();
table.Batch(actions =>
{
actions.Put(new PutRequest
{
Key =
guid,
Bytes =
Encoding.ASCII.GetBytes("This is a test string")
});
actions.Commit();
});
}
Console.WriteLine(guid);
Thread.Sleep(1000);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Rhino Tools Dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rhino-tools-dev?hl=en
-~----------~----~----~----~------~----~------~--~---