The man accused in the Aurora movie theater mass shooting had been banned from the University of Colorado after making threats and failing a key exam six weeks before the rampage, prosecutors said Thursday.

The new charges against James Holmes emerged as part of efforts to convince a judge to allow the prosecution access to 100 pages of education records subpoenaed from the school where he had been a neuroscience doctoral candidate.

The university turned over the documents last week, but Holmes' lawyers moved to keep them sealed.

Holmes is accused of killing 12 people and wounding 58 others in the July 20 shooting during a midnight showing of the latest Batman movie. He has not issued a plea in the case and remains held without bail.

Chief Deputy District Attorney Karen Pearson did not elaborate on the nature of the threats during the hearing, nor did she disclose where the information came from.

Lab work deteriorating

Pearson also told Judge William Sylvester that professors had urged Holmes to get into another profession and said his lab work had been deteriorating.

Defense lawyer Daniel King objected to the release of the records, calling the prosecution's request a "fishing expedition that needs to be stopped."

The university didn't immediately have a comment on the prosecution's claims.

Prosecutors are seeking Holmes' university application and his response, his grades, course schedules, emails concerning Holmes, and anything concerning his termination or withdrawal from the school.

"What's going in the defendant's life at the time is extremely relevant to this case," Pearson said.

Holmes appeared more engaged in the hearing than previous court appearances. His walk was more deliberate when he came in courtroom. Rather than staring blankly ahead, he looked at the judge for most of the hearing.

The prosecutors' account presents a sharply different picture of Holmes' exit than the one provided by university officials in the days after the shooting.

Before the gag order was issued, the university said that campus police had no records on Holmes and that the student lost access to the school because he withdrew from the program, not because of threats.

"I don't have any information on him (Holmes) at all," campus police Chief Doug Abraham told a press conference four days after the shooting. "We've had no contact with him on any matter."

At the same press conference, university officials said Holmes lost access to university premises after his June 10 withdrawal because his student access card was shut off, rather than for threats or any other safety reason. "He effectively had left the school," University of Colorado Chancellor Don Elliman said.

The university also said in writing that there were no documents related to the decision to bar Holmes from the campus.

Prosecutors say they need the documents to gain access to a notebook reportedly containing violent descriptions of an attack. The notebook reportedly was in a package sent to university psychiatrist Lynne Fenton.

Holmes mentally ill, lawyer claims

King during court hearings said the notebook is protected by a doctor-patient relationship. King claims that Holmes is mentally ill and sought Fenton for help with that illness.

Fenton is expected to testify at a hearing Aug. 30.

Former Denver Deputy District Attorney and law professor Karen Steinhauser said arguments over the records are part of both sides gearing up for a trial over Holmes' sanity.

"They know it's not a question of who did this," Steinhauser said. "This is not a question of self-defense. They know that the only possible defense is that he was not sane at the time."

School records don't have the same legal protection as communication between a doctor and patient. But Steinhauser said prosecutors would have to tell a judge why they want them.

Steinhauser said the school records, which could include emails, might help prosecutors establish that Holmes implicitly waived his right to privacy if he talked about some of the same things he spoke to his doctor about.

The university records could also contain his school application, recommendation letters, emails between professors about their impressions of Holmes, as well his grades and progress reports on his research. Educational records released by the University of Illinois, Urbana-Champaign, a school Holmes considered attending, contained such information including a letter of recommendation that describes Holmes as having "a great amount of intellectual and emotional maturity."

"They want those records in the hopes that it could help them build their case that these are not the actions of an insane man," Steinhauser said.