TableCellRenderer causes buggy graphics and is called again and again

I want to create a table with variable cell-hights, depending on the
number of lines that shall appear. This works by my following Renderer
(a JTextArea). But when I move my JDialog (or I also tried JFrame)
containing my JTable (inside of a scrollpane, of course) around, there
are still intermediate dialog-positions on the screen.
Another problem is, that the method getTableCellRendererComponent()
is called over and over again, as long as the dialog exists.
Here is the code of the Renderer:
private class MyTableRenderer extends JTextArea implements TableCellRenderer
          public MyTableRenderer()
               super();
               setOpaque(true);
          public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
               Log.info("MyTableRenderer", "getTableCellRendererComponent() called");
               String s = (String) value;
               int count = 1, i;
               if (s != null) {
                    for (i=0; i<s.length(); i++) {
                         if (s.charAt(i) == '\n')
                              count++;
               table.setRowHeight(row, 17*count+4);
               setText(s);
               if (isSelected || hasFocus) {
                    setForeground(Color.white);
                    setBackground(Color.red);
               } else {
                    setForeground(Color.black);
                    setBackground(Color.white);
               return this;
     private MyTableRenderer myRenderer = new MyTableRenderer();
Later in my dialog-constructor I do the following:
try {
               Class cc = Class.forName("java.lang.String");
               table.setDefaultRenderer(cc, myRenderer);
          } catch (Exception e) {}
By the way: MyTableCellRenderer is a inner class of my dialog-class.
Please help

Yes, you are right: The graphics is caused by the infinite loop
and the infinite loop is caused by setRowHeight().
To make sure it is called only once per row I intoduced a Hashtable rowHeights to store the old heights of earch row. setRowHeight() is
now only called, when there is nothing in the Hashtable for the
current row, or if the size of the Hashtable and the preferred size
(another improvement) are different. Here is the working code for my
Renderer:
     private class MyTableRenderer extends JTextArea implements TableCellRenderer
          Hashtable rowHeights = new Hashtable();
          public MyTableRenderer()
               super();
               setLineWrap(true);
               setWrapStyleWord(true);
               setOpaque(true);
          public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
               Log.info("MyTableRenderer", "getTableCellRendererComponent() called: row="+row+", col="+column);
               if (column == 0) {     
                    String s = (String) value;
                    if (s != null && !s.equals("")) {               
                         setText(s);
                         Integer oldHeight = (Integer) rowHeights.get(new Integer(row));
                         Integer newHeight = new Integer(/*17*count+4*/ getPreferredSize().height);
                         if (oldHeight == null || !oldHeight.equals(newHeight)) {
                              rowHeights.put(new Integer(row), newHeight);
                              table.setRowHeight(row, /*17*count+4*/ newHeight.intValue());
                    if (isSelected || hasFocus) {
                         setForeground(Color.white);
                         setBackground(Color.red);
                    } else {
                         setForeground(Color.black);
                         setBackground(Color.white);
               return this;
Thanks a lot !

Similar Messages

  • I print 2 pages to pdf and file size is 600k, I print 1 additonal page and file size goes to 6M, what would cause this (graphics are same on all pages)

    I print 2 pages to pdf and file size is 600k, I print 1 additonal page and file size goes to 6M, what would cause this (graphics are same on all pages).
    I know the colour graphic shading in the document that causes the issue of larger file size, but it doesn't make sense that printing 1 additional page with same information as first 2 pages would cause this.

    I print 2 pages to pdf and file size is 600k, I print 1 additonal page and file size goes to 6M, what would cause this (graphics are same on all pages).
    I know the colour graphic shading in the document that causes the issue of larger file size, but it doesn't make sense that printing 1 additional page with same information as first 2 pages would cause this.

  • Firefox 4 appears to be causing my graphics card to stop responding for no reason, since upgrading to 4.0.

    I'm not sure if its a common occurance for other users, but since the 'hardware accelerated support' with Firefox 4 release, firefox seems to regularly cause my graphics card (Nvidea GT320M) on my laptop to 'stop responding' for a few seconds every so often, usually when I have flash websites such as youtube open. It isn't a huge deal since it restarts working again after a few seconds of a black screen, but its annoying non-the-less.
    An example of such: earlier today i started up firefox 4, and when it was loading the tabs, the screen turned black, and when the screen came back on, pop up in the windows task bar told me that the graphics card had stoped responding but successfully recovered. Not the first time, but becoming a more regular occurrence.

    You seem to be running older versions of Flash and Java plugins. I'd recommend you update to the latest versions first of all to see whether the problem persists or not.
    The easiest way to check is to go to the [http://www.mozilla.com/en-US/plugincheck/ Plugins Check] page.
    If that fails to solve the problem, try running Firefox in [[Safe Mode]]. If it works correctly in that configuration, then one of your add-ons is the culprit.

  • A seeming small change by Verizon causes major monetary and unrecovera​ble damages

    A seeming small change by Verizon causes major monetary and unrecoverable damages
    Back, I think in March or so, Verizon changed how they bill. Prior to this time frame my elderly mom paid the phone bill and I paid the DSL bill. The DSL bill came on my name and I paid by credit card and the phone bill came under her name and she paid by direct debit. She will not use a computer.
    So, they make both bills on her name and won't change it. They did, however, allow the payment from my credit card.
    The first unfortunate consequence was the internet speed suddenly dropped in speed by a factor of 2 to 1.5/364 and it did take me probably a month to notice it. NO ONE that I called was able to find the problem. It took multiple attempts until some bright “call in technician” said the problem is on their end and could be fixed in software. Thus, I believe, because of the name change, the provision changed too. The phone line crapped out too at this time.
    The troubleshooting was stupid too. I took another modem and connected it directly to the NID and directly to the laptop and the technician on the phone said, it's either in your house or your modem and wanted to send me a new modem which they did. I don' get it. This is the wrong conclusion.
    This shows the need of modems like Westell 2200 and the Westell 6100 because of the ability to measure line statistics and provisioned data rates.
    Verizon sent me a D-link model DSL-2750B modem which I have to return because its just plain old stupid. It boasts Wireless n and the wired ports are 10/100. What's up with that? Next, there are no line stats and a horrible interface, akin to Verizon's website. Still can't figure out how to put it in Bridge mode. I own a D-link repeater and the interface is fine.
    I asked them what modem they would send me and they would not tell me, so I got whatever piece of junk they had lying around.
    I have now purchased a Network RAID array with no wireless access and with ~400 mb/s access rates. Yep, really stupid router.
    Because of the number of outages, I have to be able to quickly switch from a bridge connected modem, Westel 6100) to one that is connected in direct mode, a Westell 2200 It's almost easy, but not quite, since the equipment is up in the rafters in the laundry room. The DSL cable is commercial terminated CAT5, which is rare. The modem is within 6' of the NID.
    Plans include, the ability to switch the DSL line with a switch with positions for Modem #1 (Bridge), Modem #2(Wired), #3(RJ11 – Normal wiring) and #4: RJ-11 (Reverse wiring) and moving the direct connect jack for easy access. In any event, testing with the DSL modem at the NID is the gold standard.
    In progress, is a 48 port Gigabit patch panel for phone and Ethernet, A separate 24 port RED patch panel will be bridged for phone.
    I have already upgraded my network infrastructure to include a UPS for the network infrastructure and POE (Power over Ethernet) for the DSL modem. The UPS backup does not backup a repeater although it may in the future.
    Now, let's go back to this seeming innocuous billing change.
    So, this constant having to access the modem in the alternate configuration and a medical condition (migraines) that makes it hard to think clearly. So, in one of these episodes, I placed my laptop on top a container that was soaking laundry.
    So, the LCD screen has to be replaced at $300 and the battery had to be replaced. Then the Ethernet cord to the modem got pulled and caused the laptop to fall on the floor. It worked for a few weeks and then suffered an UNRECOVERABE hard drive crash.
    During this time frame, in fact over a 2 day period. My mom ended up in the hospital and to a rehab facility. My car ended up staying in the shop for a few days because of parts unavailability. My hard drive crashed and their was water in the basement. I don't have time for this.
    Recovery would have cost $2004.00, if it were possible. I only have a drive image from 2011 which I have yet to try to use. I' now running UBUNTU Live rather than Windows 7 Pro. Some of the very important stuff was backed up on Flash, but a lot of stuff is gone forever.
    Plans are to contact the billing office and the attorney general's office in the state where billing questions need to be resolved.
    The last outage, fixed on July 27, was flagged as a phone outage by Verizon, when 18 routers supposedly died. 18 routers suspiciously means that they they were not adequately protected against surges. Verizon should look at the way DelMarVa Power reports outages: see: Delmarva,  Put the usual World Wide Web Prefix and the COMercial domain suffix
    For god's sake, quit making the website circular. I though Yahoo was the expert in that. I never visit Verizon's website unless there are problems. I mistaking thought I could find outage information, say using my phone's browser. This time I had to purchase service from CLEAR internet to ride me through this fix.
    I know, you can't fix stupid and you can always find a better idiot. Comcast is looking more attractive.
    Compensation of or my loss I will probably never get, but maybe with the help of the attorney general I can get the billing fixed. I do have power of attorney. Now, of course, the name the Verizon Website addresses me as is not right on this forum.
    All, basically because of Verizon's unreliable network, incompetent people and the lack of maintenance of copper lines. The problem is, “We have little choice”. Currently, we need traditional land-line service to support an Emergency Response system. It's unclear whether digital phone lines support Faxes and alarm monitoring reliably.
    I'll bet that there is NO WAY to tell Verizon if a service address as special needs like Emergency Medical reporting via phone or Internet, so that priorities for repair can be done properly. Utilities have that capability. Those ares with people with oxygen generators or other medical equipment get a higher priority,

    That should not be happening.  I sympathize with both of you (you and the the person who strated this thread).  That sounds like the reason I would never want Dish. 
    I am fortunate that my service with Verizon Fios has been very reliable and that I haven't had too many issues over the years.  But don't get me started on Verizon Wireless.  I am through with doing any more business with them once my cell phone minutes run out.  I love it when they say they have done everything the could to investigate such a simple issue with running my debit card transaction wrong and blaming it on my bank, i.e. running it through as a "debit" when I choose "credit" all of a sudden now  two times in a row after 4 years of doing it right as "credit".  And now they consider the issue closed on their end when nothing has been resolved.  That's no way to treat a long time customer and I really felt treated like I was a bother to them.  It's not like I ever paid them much money for this pre-paid cell phone service that I have used infrequently but I was really mad at the way they just wrote this off and pretty much told me "too bad".  Talk about "customer non-service".  It's also very hard to track the number of minutes left on my balance.  I'm due for an upgrade anyway.  I want to switch to the I-Phone from this flip phone but never again with Verizon Wireless.  T-Mobile is way more attractive.  Verizon  Wireless is not only an entity separatedfrom Fios but it's definitely a much different animal and their customer service has really gone downhill.  When you're treated like they don't care, it's maddening.
    My customer service experience with Fios overall has been far superior to that most of the time.  My setup is simple and even though there are some people who will inevitably complain about anything just to vent, I definitely believe at least some of what is posted here.  And switching TV, phone, and Internet providers is a lot more involved than switching a cell phone provider. 

  • How to end a called function if called again?

    I have a function that populates a scene with a number of
    boxes via attach object VIA the FOR function. Now I have it set up
    so that each box has a delayed time to fade in. Now every time you
    push the update button, it repopulates (data loaded from database)
    and it does it correctly. but if you push update again before all
    the boxes have faded in, some of the boxes arent removed and it
    messes up. (notice i do have a "for" script thats supposed to
    remove all current objects before the "for" call sends out to load
    the data and hte new boxes..
    I'm guessing that i need somthing tha breaks the last
    function if its called again, how do i do so ?

    quote:
    Originally posted by:
    kglad
    if next boxes were created before they started to fade-in and
    all the previous boxes were removed before the next set of boxes
    were created, you wouldn't have a problem. and that's probably how
    you should set this up.
    p.s. you should terminate any on-going fades before removing
    the previous boxes.
    http://wyldmarketing.com/brinker/
    :S which is what i don't understand cause that's what im doin :X

  • Slow FPS, graphics and choppy video when connected to a Mini-DVI cable to external monitor on Macbook Mid2007 4GB RAM

    Hi,
    I have a Mid-2007 Macbook white. I have upgraded its memory to 4GB. Snow Leopard was working great, and I said to myself maybe it's time to upgrade to Lion.
    After the upgrade all was well. However, a big problem occurs when I plug in to the Mini-DVI display port with the HDMI adapter, to connect to my Sony LCD HDTV. The whole graphics and video slow down, everything is choppy. Quicktime and VLC video playback is strobe and choppy looks like very low Frame Rate. Cannot watch anything, not HD nor low resolutions. The entire computer is slow when the cable is connected.
    Things I tried:
    *VGA adapter seems to work fine - it's the digital display output that probably causes that.
    *Running it through a new user.
    This never happened on Snow Leopard. i'm considering to go back. However, I am wondering if there is a way to fix this minor problem.

    Update:
    We solved the problem. Weird solution but now it seems to work. I plugged a VGA adpater and played with the screen rsolutions to try and watch a movie well on my LCD screen. I changed the screen resolutions but I couldn't revert back to the default settings. Pressing "Detect Displays" didn't do anything.
    Here is the interesting part: When I placed back the DVI-HDMI adapter, suddenly everything worked fine!!! There was no choppy videos, no low fps, works prefect.
    Something weird is going on here, but I'm happy I managed to get the DVI to HDMI to work because I was about to removie Lion and bring back Snow Leopard.

  • What is causing this problem and what are you doing to fix it? Should I just go back to Internet Explorer?

    Every single day, Firefox crashes and sometimes in the most inopertune time. This is very frustrating as some of the times I can not go back in and correct what I was not able to do due to your site crashing. What is causing this problem and what are you doing to fix it? Should I just go back to Internet Explorer?

    First, you must use a specific [[Managing profiles|profile]] for Firefox 4.0 Beta and keep your current one for Firefox 3.6 to prevent interferences between the two versions.
    For your problem:
    # [[Troubleshooting extensions and themes]] could be a cause.
    # If not 1. and if it does not happen in [[Safe Mode]], you must disable HW acceleration in Options > Advanced > General. If it solves your issue, your graphic driver is out-of-date and must be updated. Go to your computer manufacturer support site.

  • MacBook Pro with Retina display in game graphics and SMC

    I recently bought a MacBook Pro with retina display and started playing STC2 on it. I experienced  great gameplay with maxed out graphics and 30fps, however recently the fps was down and as part of my trobleshooting I reset the SMC and that seemed to correct the issue. However the computer heats up much faster now and the fans seem to labor to keep it cool. When the fps was lower before i reset the SMC the computer did not get nearly as hot. My question is; is this the OS trying to protect the hardware from overheating or just a glitch?

    Well unless you want to go through the hassle of waiting for a replacement unit you can try a few things on your own.
    Make sure it is plugged in and charging (Orange LED light will indicate it is charging Green means it is fully charged)
    Once it is plugged in make sure everything else is unplugged
    The only thing plugged in should be the power adapter
    On the left hand side of your keyboard press down and hold the Control Shift and Option Keys
    While you are holding down those three keys hold down the power button as well
    Hold down all 4 of these for 10 seconds
    After 10 seconds let go
    Try turning your mac on
    If this works problem fixed!
    If this does not work try calling 1-800-MYAPPLE (You get 90 days of free complimentary phone support on your product)
    If you purchased AppleCare you have 3 years of it and you should have this number on hand it can really help you out
    I always advise friends and family to purchase applecare if they plan on having their product longer than a year
    You will get 3 years of phone support as well as hardware support
    That means if you have any questions or anything goes wrong just call Apple
    It also means if your computer breaks it is covered! Meaning no out of pocket expenses unless it is water or accidental damage
    You may really want to look into purchasing applecare

  • Why is my Mac storing graphics and photos from the web in iPhoto?

    How can I prevent my Mac from downloading graphics and photos from the web?   How do I remove the thousands of images that the Mac moved into iPhoto when I browse the web? 

    This has been reported a few time with no definitive cause. It probably is caused by dragging things to iPhoto. Best solution is to load the back up from just before it occurred. Otherwise you neen to use iPhoto to delete them emptying the iPhoto trash every 100 or so
    LN

  • CS5 Interactive PDF - disappearing graphics and buttons

    I have been struggling with CS5 - just about every interactive aspect of it anyway. I have an ebook that I just brought into CS5 from CS4. Each chapter in the book has interactive features such as buttons, anchored graphics, embedded video, html links, etc. I had been struggling with creating the interactive PDF (the whole spread thing) but fixed that with a script found in this forum (Thank You). Even still, I am struggling with random graphics and buttons that disappear off the page during pdf creation. One graphic was moved (not by design) into the bleed space of the document. All of these weird interactive bugs are just about more than enough. It is not an option to create the buttons in Acrobat... there are just too many. Anyone else have similar problems or have a solution I could try. I am close to the point of having to return to CS4 (which would suck to have to redo the edits made again).

    I am sure that is true and makes very good sense for many projects.
    This project is an ever evolving project... a price list that has evolved even from CS. I am in the process of creating it all new again, fresh in CS5 as a side project. Unfortunately, deadlines always push us to make do with what we can and with what we have. I was hopeful that CS5 would take away some of the pains I had been dealing with in CS4, but truly I was just uncovering more crud than I was able to work around. There will be a time when CS5 is good enough... just not today.

  • There is a problem with the phone app. When I want to call somebody the phone screen come too late. This will cause a problem if I call the wrong number

    There is a problem with the phone app. When I want to call somebody the phone screen come too late. This will cause a problem if I call the wrong number.  Apple please please please fix it as soon as possible and also check why the phone is always restart. I prefer to let us use the iOS 7 until you finished from the IOS 8 because Ios 8 still under construction  there is a tones problems in the system.  And this Will cause undirect problem for the iPhone 6

    There is no apple here in this user to user technical forum.
    Do this Use iTunes to restore your iOS device to factory settings

  • Slightly bent frame on T61, causes many creaks and flexes

    After using my Thinkpad T61 for about 2 months, I just knew there was something that didn't feel quite right about the build quality. The palmrest showed a noticeable amount of flex, and one of the rubber feet was elevated 1-2mm off any flat surface (only the center part would touch the table). This basically meant that the frame wasn't completely straight on my Thinkpad.
    I compared my Thinkpad to 2 from my friends; one is a 14.1" just like mine (but integrated graphics) and shows absolutely no flex in the classis. The other, a 15.4" T61, showed a very slight bit, but much less than mine.
    What will Lenovo do to fix the bad build on my T61?  I am in college right now, so it would be inconvenient unless Lenovo could cross-ship me a new unit. However, the bad build quality on mine really annoys me, especially with the Thinkpads' reputation for great chassis quality.  The entire right side of my laptop literally moves up and down about 3-4mm if pressed on, even lightly.
    Also, would Lenovo let me keep my HDD? That way, I could just pop it into the replacement without having to worry about backing up work or re-installing Windows all over again.
    P.S. The headphone jack on mine apparently seems to be a little faulty also; I have to orient my headphones at a very precise angle, or I hear a lot of hissing in the background.
    Thanks in advance
    Here is a picture of the "bent" right side; notice that the rubber feet don't make full contact with the table.  I've tried this on many flat surfaces and it creaks and flexes whenever I put my right hand on the palmrest.
    Picture of right side; notice the elevation (Picture was taken from below so in reality it is WORSE ...
    Picture of left side; notice it makes full contact with table
    Message Edited by myang322 on 10-18-2008 01:48 PM

    Hello,
    yes, the T61 have got some flex at the right side above the hdd.
    R models are heavier but have little flex, the T model are made out of very light
    and carbon enhanced plastic materials. You can try to put a piece of thick paper under the palm rest.
    The chassis and audio problem have to be repaired and I would suggest to send it to depot.
    Please mention your palmrest flex also.
    You can dismount your hdd to keep it at home. It´s a CRU (customer replaceble unit).
    Follow @LenovoForums on Twitter! Try the forum search, before first posting: Forum Search Option
    Please insert your type, model (not S/N) number and used OS in your posts.
    I´m a volunteer here using New X1 Carbon, ThinkPad Yoga, Yoga 11s, Yoga 13, T430s,T510, X220t, IdeaCentre B540.
    TIP: If your computer runs satisfactorily now, it may not be necessary to update the system.
     English Community       Deutsche Community       Comunidad en Español

  • Can I edit/add graphics and effects to Live footage?

    Ok-
    I know most people use FCP to edit, previously captured footage.
    But what I'm interested in knowing is something along the lines of:
    How does ESPN put graphics on their live footage of a NFL game which is then broadcasted via TV.
    Or
    How does the News put graphics over it's live footage?
    I know this is a broad topic but can FCP do anything like this?
    I have an opportunity to work with a smal scale local video production company that is broadcasting live video footage via the internet but they want to be able to incorporate graphics and some effects into the video.
    They already have the production in place and going (camera crew, director monitoring all cameras and footage, equipment, and server) It works really well, But they've never been able to incorporate graphics.
    How is this done? Anyone here know? Thanks.

    How does ESPN put graphics on their live footage of a NFL game which is then broadcasted via TV.
    Or
    How does the News put graphics over it's live footage?
    With what are called SWITCHERS...or...some other technological term that I know Zebulun knows what it is called. Since he works in live sports broadcasting. Stuff designed for live TV. Used to be called a Chyron or CG (character Generator)...
    I know this is a broad topic but can FCP do anything like this?
    Nope...it is a NON-LINEAR editor...NOT a live switcher. Not at all what it is designed for.
    Google man...
    http://www.masternewmedia.org/videointernettv/live-video/broadcast-live-tv-online-with-mogulus-20070521.htm
    Shane

  • Yes Verizon has contacted me by phone.  I never scheduled a call time nor did I call them.  They also are not making it easy to contact them through email.  I need to discuss a way to assure that my phone is never called again during work hours without a

    Yes Verizon has contacted me by phone.  I never scheduled a call time nor did I call them.  They also are not making it easy to contact them through email.  I need to discuss a way to assure that my phone is never called again during work hours without a prearranged meeting.  I will not speak on the phone nor use a live chat.  I want email as I want this documented offical and no other means offeres me that assurance.  I'd also like to discuss comensation for being harrassed with phone calls.

    Well if you pay your bill the calls would not happen.
    You need only tell them not to call you during working time.
    The Fair Debt Collections Practices Act states you must tell them it is not convenient.
    Now if marketing calls you can opt out at the Verizon web portal under your My Verizon account.
    You will not get compensation for them to call you. Nice try.
    However they could just shut your phone off and then you will call them.
    Email is not an option.
    Good Luck

  • What hardware should i consider using if i am a graphic and media design?

    I am a Graphical and media designer who is also into coding so i like producing websites. However, when it comes to reccommending hardware or even knowing any hardware at the slightest, i get really muddled up when choosing the right componants. I would like to know what good stuff i can use such as
    Desktop
    Hardware
    Processor
    Memory
    Power Supply
    CPU ?!?!?
    these are just examples but it would be good if you can help me out!
    Thanks.

    If you're considering purchasing a Mac, why not go to an Apple Store and talk to one of the people there.  Tell them exactly how you'll use your Mac.  You'll get good advice and no sales pressure.  If you're not near an Apple Store, you can call the Apple toll-free number where you live and get the same good advice.  You can find out about hardware and software that you need to do the job.

Maybe you are looking for

  • HOW TO: Post a SQL statement tuning request - template posting

    This post is not a question, but similar to Rob van Wijk's "When your query takes too long ..." post should help to improve the quality of the requests for SQL statement tuning here on OTN. On the OTN forum very often tuning requests about single SQL

  • I can send text msgs to every contact except one

    So I can send text messages to all of my friends just fine; however, I can't send text messages to my gf! I can receive her texts but she can't receive the ones I send. She used to be able to receive them. I'm going to contact AT&T very soon, but I w

  • Lost Safari Bookmarks on iMac

    I have lost all my Bookmarks for Safari on my iMac (as well as on my iPhone). I was turning my iPad in to Gazelle.com for cash and was taking apps off of it. I wiped out something on it that affected my Safari Bookmarks, but I'm not sure what. I assu

  • Premiere Elements 10 trial version vs buying Elements 11

    Hi! I downloaded Premiere Elements 10 trial version last week but now 11 is out! I (unfortunalty for me) didn't realize watermarks would "stay" until I bought full version but I figured I might as well buy the 11 version since it's out. So how can I

  • Hallo! Habe da ein Problem mit der Einstellung Speicher & Mehrprozessorverarbeitung...

    Also ich versuche gerade alles um dieses Problem hier zu lösen... Aber komme einfach nicht zur Sache. Ich gebe 1 GB frei und 8 Kerne werden verwendet. Ich gebe 4 GB frei und 2 Kerne werden verwendet und es taucht immer das selbe Problem auf... Ahja,