# much time in compiling document latex [closed]

I have a problem in compiling my document. It takes much time in compiling and when I stop this this error appear:

! File ended while scanning use of \@writefile.<inserted text>\par \begin{document}


EDIT:

This are the packages that I use

\documentclass[12pt,a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage{color}
\usepackage{xcolor} %les couleurs
\definecolor{myblue}{rgb}{0.2,0.4,1}
\usepackage{layout}
\usepackage[top=2 cm, bottom=2 cm, left=2 cm, right=2 cm]{geometry}
\usepackage{setspace}
\usepackage[pdftex]{graphicx}
\usepackage{array}


and also i compile this document frequently whith no problem but yesterday this problem appear

-
Do you forget a \end{document}. Please add a minimal working example (MWE) that illustrates your problem – Marco Daniel Apr 17 '12 at 11:36
You need to tell us more for us being able to help you. If the document is large, you obviously can't post it here but maybe you can provide a link? What packages are you using? Have you tried trimming it down to isolate the problem? – Christian Lindig Apr 17 '12 at 11:38
no i put it but when i try to compile this it last much time – boutheina Apr 17 '12 at 11:38
yes my document is large. how i can provide a link? – boutheina Apr 17 '12 at 11:40
The message is from the aux-file. Beside other it contains instructions of code which should be written to the toc: e.g. \@writefile{toc}{\contentsline {section}{abc}{1}} Probably you have added something fragile to one of your titles and now latex chokes on the content in the aux-file. Open the aux-file to find the culprit, correct your code and then delete the broken aux-file. – Ulrike Fischer Apr 17 '12 at 12:14