I had wrote following table in TexMaker, when I write it without \usepackage{xepersian} it works but when I want to compile it with that package too, program will hang! But I don't see any mistakes and my entries are these.
\documentclass[12pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{xepersian}
\settextfont[Scale=1]{XB Niloofar}
\author{SadeghiManesh}
\title{A Table}
\begin{document}
\begin{flushleft}
\begin{tabular}{|l|l|l|l|l|l|}
\hline $\nabla_{X_{i}}X_{j}$ & $\Gamma_{i,j}^{2}$ & $\Gamma_{i,j}^{1}$ & k & j & i \\
\hline $\frac{-1}{x_{2}}X_{2}$ & $\begin{array}{l} \; \\ \frac{-1}{x_{2}} \end{array} $ & $\begin{array}{l} - \\ \; \end{array} $ & $\begin{array}{l} 1 \\ 2 \end{array} $ & $\begin{array}{l} 1 \\ 1 \end{array} $ & $\begin{array}{l} 1 \\ 1 \end{array} $ \\
\hline $\frac{-1}{x_{2}}X_{1}$ & $\begin{array}{l} \; \\ - \end{array} $ & $\begin{array}{l} \frac{-1}{x_{2}} \\ \; \end{array} $ & $\begin{array}{l}1 \\ 2 \end{array} $ & $\begin{array}{l} 2 \\ 2 \end{array} $ & $\begin{array}{l} 1 \\ 1 \end{array} $ \\
\hline $\frac{-1}{x_{2}}X_{1}$ & $\begin{array}{l} \; \\ - \end{array} $ & $\begin{array}{l} \frac{-1}{x_{2}} \\ \; \end{array} $ & $\begin{array}{l} 1 \\ 2 \end{array} $ & $\begin{array}{l} 1 \\ 1 \end{array} $ & $\begin{array}{l} 2 \\ 2 \end{array} $ \\
\hline $\frac{-3}{x_{2}}X_{2}$ & $\begin{array}{l} \; \\ \frac{-3}{x_{2}} \end{array} $ & $\begin{array}{l} - \\ \; \end{array} $ & $\begin{array}{l} 1 \\ 2 \end{array} $ & $\begin{array}{l} 2 \\ 2 \end{array} $ & $\begin{array}{l} 2 \\ 2\end{array} $ \\
\hline
\end{tabular}
\end{flushleft}
\end{document}

inputencpackage. Are you using XeLaTeX to compile the document whenxepersianis loaded? – egreg Dec 21 '12 at 17:52inputencshould never be used with XeLaTeX. In your source there are many strange invisible characters, which may be the cause for the problem. If I use the Scheherazade font and remove the invisible characters, the table compiles. – egreg Dec 21 '12 at 18:03