Hi !
I am on WO4 on a project mainly written in Java.
My application sometimes exits without any message or exception. I suspect a
memory problem.
First, when I test the total memory available for the Java Virtual Machine,
I get 1048568 bytes, that is to say 1MB.
I thought the default value for the memory allocated the VM was 16 MB...
what's happening ?
I would like to increase this memory allocated to the virtual machine. How
can I do that ?
It seems that the method setDefaultVirtualMachineArguments no more exists
with WO4...
What I tried :
int main(int argc, const char *argv[])
{
NSMutableDictionary *myArguments = [NSDictionary
dictionaryWithObjectsAndKeys:[NSNumber numberWithInt:25*1024*1024],
@"NSJavaMinHeapSize", [NSNumber numberWithInt:40*1024*1024],
@"NSJavaMaxHeapSize", @"YES", @"NSJavaEnableClassGC",@"YES",
@"NSJavaEnableVerboseGC", nil];
[[NSJavaVirtualMachine defaultVirtualMachine]
initWithClassPath:[NSJavaVirtualMachine defaultClassPath]
arguments:myArguments];
return WOApplicationMain(@"Application", argc, argv);
}
I have the following message :
*** Uncaught exception: <NSInternalInconsistencyException>
NSJavaVirtualMachine: multiple virtual machines are not supported in a
single process
stack: 0x32040b0e 0x320411eb 0x32041425 0x320413b7 0x699c13ed 0x4010ef
0x40133c 0x77f1b304
Thanks a lot for any information or any help...
____________________________________________
lab production - 105, rue La Fayette 75010 Paris France
T�l (33) 1 55 07 28 28 - e-mail: [EMAIL PROTECTED]
http://www.lelab.com