• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
warnings for EC without lock?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Newbie: Mixing HTML & WO Pages?
  • Next by Date: Re: Newbie: Mixing HTML & WO Pages?
  • Previous by thread: Where is WO 5.2.2
  • Next by thread: Re: warnings for EC without lock?
  • Index(es):
    • Date
    • Thread