LaTex, issue with Beamer and Listings
Try making a fragile frame:
\begin{frame}[fragile]
The fragile
option didn't work for me, but this did:
\begin{frame}[containsverbatim]
listings provides frame functions:
\begin{lstlisting}[frame=single]
Sample Code
\end{lstlisting}