David Carradine's wife has just settled her case against the production company of the movie David was shooting when he died of auto-erotic asphyxiation ... TMZ has learned.
Anne Carradine had sued
MK2 Productions, claiming they had a duty to supervise David while he was on the shoot for the movie, "Stretch." Anne claims the night David died in his Thailand hotel room, the production staff had gone to dinner and told David he would have to make his own arrangements for the evening.
Sources tell us that MK2 paid Anne money to settle. And, we're told the other defendants -- including the hotel and insurance company have settled as well.
In all, sources say Anne will get around $400,000 from the defendants.
Even in death,
David Carradine is fighting over money with an ex -- according to new court docs, the former "
Kung Fu" star owes more than
half-a-million bucks to his deceased ex-wife.

Carradine's 3rd wife --
Gail Jensen -- was locked in a legal war with Carradine's estate before she died back in April ... insisting the actor had owed her $250,000 in royalties from "
Kung Fu" and "
Spirit of Shaolin" ... and $300,000 in tax payments she made on his behalf.
Now, Jensen's sister has taken up the fight -- filing new legal docs in L.A. County Superior Court in an attempt to collect the money.
But there's more drama -- before Gail died, she was battling for estate control against Anne Carradine ... who David was married to at the time of his death.
Anne filed legal papers claiming David only had $40k to his name ... but judging by the new legal docs, Jensen's camp clearly isn't buying it.
David Carradine's widow is fighting off the financial claims an ex-wife is making on his estate -- but here's the catch ... she claims the whole shebang is only worth $40,000.
Anne Carradine filed a petition today to be named administrator of David's estate, though she claims the estate is so paltry the filing shouldn't be necessary.
In the documents, Anne claims the grand total of David's estate is $40 grand in personal property ... and $0 in real estate.
David's ex-wife
Gail Jensen -- who passed away in April -- had filed papers before she died asking to administer the estate because she claimed David owed her money.
Anne's new filing -- made in
L.A. County Superior Court -- seems to be a direct response to Gail's. In the docs, her attorney states, "She has filed that petition to protect [Carradine's estate] against the filing" of Gail's attorney.
David Carradine's wife is suing the production company of the movie he was shooting when he died, claiming the company should never have left David alone that night.

According to the suit and obtained by TMZ, on the night
David died he was supposed to have dinner with the director of the movie he was shooting -- "
Stretch." The suit claims the production company assigned an assistant to David who was responsible for his schedule and transportation.
Before the dinner, the assistant called David but he didn't answer. The assistant then left for dinner without David. An hour later, David reached the assistant but was told "they were already across town and David Carradine would have to make his own arrangements that evening."
David was found naked in a closet in his hotel room, where he died from
auto-erotic asphyxiation one year ago today.
The bottom line --
Mark Geragos, lawyer for
Anne Carradine, claims David -- who was only in Bangkok for 3 days -- would not have died had the production company fulfilled its obligations and followed industry standards in caring for its star.
It was bound to get downright inappropriate during the roast of
Joan Rivers -- but was anybody really expecting not one, but two cracks at the late
David Carradine's expense? Warning: Language NSFW.

Both
Greg Giraldo and Joan herself made the jokes -- but they leave us with just one question ...

A private autopsy performed on
David Carradine's body suggests the actor's death was accidental.
Forensic pathologist Dr. Michael Baden said the cause of death was from asphyxiation -- and that binding on his body helped rule out suicide. Baden said Carradine's hands were tied above his head, not behind his back -- but he still needed more information from Thai police to completely rule out the possibility he was killed by someone else.
Carradine was found hanging naked in the closet of his Bangkok hotel room on June 4.

An independent autopsy requested by
David Carradine's family revealed he did not commit suicide.
No real surprise there. The forensics expert who examined his body, Dr. Michael Baden, said he'll need further information from Thailand to make a final determination about the cause of death.
David Carradine went to a Los Angeles sex shop he frequented just three weeks before he died and placed a large order for clothing, toys and videos.

According to the owner of Susie's Delights in Tarzana, CA, Carradine was a regular in the store -- shopping there a few times a month for years. The owner tells us Carradine owned almost every piece of bondage equipment in the store.
The order Carradine placed three weeks ago included women's lingerie, stockings, a few pieces of bondage equipment and three bondage DVDs. Some of the items were on back order and Carradine was supposed to come back and pick them up a few weeks later. He never did.
The owner told us when Carradine placed the order he talked to her for almost an hour, saying he was upset because he felt his wife was unhappy with him.
The photo gallery (above) includes various items the owner says Carradine purchased in the store.
The episode of "
Mental"
David Carradine filmed before his death aired last night on FOX.

Carradine played a famous author who goes catatonic after getting struck by lightning -- and spends most of the episode confined to a bed, sitting in a wheelchair or floating lifeless in a pool.
His character does eventually wake up. But ...was it cool to run the show so soon?

We've now seen a clear, uncensored version of the photo of
David Carradine's body, and it reveals a powerful clue reinforcing the theory his death was an accident.
The rope around his neck is knotted in front -- common in the bondage community. We checked around with experts, who say a knot in the front is a telltale sign someone is
not doing themself in. The frontal knot makes it fairly easy to quickly escape if they start losing consciousness.

One of
David Carradine's ex-wives tells us David's obsession with auto-erotica went so far, it involved Jesus.
Gail Jensen -- Carradine's third wife -- says she came home one day and -- starting at the door -- there were post-it notes with arrows leading into the basement.
Jensen says she followed the notes and found Carradine hanging from a rope, emulating
Jesus Christ in body position. Jensen asked him what he was doing. David's response: "I really would like a sandwich."
Jensen says they were having people over, but David stayed in the basement while the guests ate upstairs. Gail says she went down to the basement several times to give him food and wine. Several hours later, he untied himself and joined the party.