Prev: createMask.m
Next: Freeing up variable memory
From: Christopher on 2 Jun 2010 14:38 Shoot, I should probaly also say that when I create a new instance of the class after I either already have one or have cleared one in the current matlab session, it gives me these warnings: Warning: Duplicate entry,D:\[path] >In javaclasspath>local_validate_dynamic_path at 276 In javaclasspath>local_javapath at 184 In javaclasspath at 119 [...] Warning: Objects of [class] class exist - not clearing java >In javaclasspath>local_javapath at 194 In javaclasspath at 119 [...] I don't know if this is helpful or not... -Chris
From: us on 2 Jun 2010 14:49 "Christopher " <cwb34(a)drexel.edu> wrote in message <hu68ed$6l5$1(a)fred.mathworks.com>... > Shoot, I should probaly also say that when I create a new instance of the class after I either already have one or have cleared one in the current matlab session, it gives me these warnings: > > Warning: Duplicate entry,D:\[path] > >In javaclasspath>local_validate_dynamic_path at 276 > In javaclasspath>local_javapath at 184 > In javaclasspath at 119 > [...] > Warning: Objects of [class] class exist - not clearing java > >In javaclasspath>local_javapath at 194 > In javaclasspath at 119 > [...] > > > I don't know if this is helpful or not... > > > -Chris well... a slightly different problem... % now, you must clear 'your_class'; % as well us
From: Christopher on 2 Jun 2010 15:12 > > well... a slightly different problem... > > % now, you must > clear 'your_class'; > % as well > > us Hmm, nope. Clearing th java path does't help either. inmem still dos't repor it, but it's definitely still there. -Chris
From: Mark Stevenson on 29 Jun 2010 20:29
I am having a similar problem. I have a JAR file containing classes for loading large data files into memory. I import them and use them to load data and return a matrix of numbers. No matter what i try, i cannot clear the data from memory. The only way i can do it is to restart matlab. A simple example: ******************************************* import utils.Extract; dataMatrix = Extract.subsetArray(fileName, 010901,100601); clear all clear java clear import ******************************************** Extract.subsetArray is a java method that returns a matrix of data from the file 'filename' between the dates 100901- 100601. Nothing i do frees the memory, only restarting. I can't work around this as i need to put this in a loop. Any further ideas? Regards, Mark |