warnings for EC without lock?
warnings for EC without lock?
- Subject: warnings for EC without lock?
- From: email@hidden
- Date: Thu, 23 Oct 2003 12:53:19 CDT
- Priority: 3 (Normal)
[demime could not interpret encoding binary - treating as plain text]
I can not seem to manage to get warnings printed out for using an EC
without locking it first. There's supposed to be some ways to get this
warning, right?
I have made a simple test application. In the Application constructor, I set:
NSLog.setAllowedDebugLevel( NSLog.DebugLevelDetailed );
NSLog.allowDebugLoggingForGroups(NSLog.DebugGroupMultithreading);
I believe this is supposed to turn on the warnings I want.
In a component action, I do:
EOEditingContext ec = new EOEditingContext();
System.err.println("Trying access without lock, what happens?");
EOFetchSpecification spec = new EOFetchSpecification("Employee",
null, null);
NSArray objects = ec.objectsWithFetchSpecification(spec);
Employee e = new Employee();
ec.insertObject(e);
e.setName("foo");
ec.saveChanges();
System.err.println("done");
This is accessing an EC, the one I just created, in an illegal way,
right? It should print out a warning? It does not. Not on Windows, not
on Solaris, I tried both.
Huh? I really want to get these warnings, so I can rule out improper EC
locking in trying to diagnose this really mean intermittent bug I'm
getting. But I can't get it turned on. This is really frustrating. Any ideas?
--Jonathan
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.