Zero net charge in two space dimensions? I recently came across the statement (without further explanation) that the net charge in a two dimensional system has to be zero. Obviously in two dimensions, the electric field $\vec{E}$ due to a point charge is inversely proportional to the distance to the charge: $$\vec{E} \propto \frac{\hat{r}}{r}. $$
If we compute the negative line integral of $\vec{E}$ in the radial direction from some $r' = r_0$ to $r' = r$, we get the electric potential $$V(r) = -\int_{r_0}^{r}\vec{E} \cdot d\hat{r} \propto -\ln(r/r_0).$$
Obviously this diverges for $r \to \infty$, but I'm not sure that itself is a problem.
My feeling is that the problem is that a nonzero net charge would lead to infinite electrostatic potential energy, but I'm not sure how to prove that.
Another idea was to consider the energy density $|\vec{E}|^2 \propto 1/r^2$. This would give a total energy proportional to $$\int_{0}^{\infty}\frac{1}{r}dr$$
which diverges. The problem is of course that the corresponding integral in three dimensions, $$\int_{0}^{\infty}\frac{1}{r^2}dr$$
also diverges, so it doesn't seem like a very good argument.
However, we can note that the integral in two dimensions diverges at $\infty$, whereas the integral in three dimensions diverges at $0$. 
Any input on this?
EDIT:
Here is a translation of the text where it is mentioned. For context: It has just been shown that for an infinite straight line charge with charge density $\lambda$ the potential difference $V(a)-V(b)$ is given by $$V(a)-V(b) = \frac{\lambda}{2\pi\epsilon_0}\ln(b/a).$$
Then comes the following comment:
An infinite straight line charge is often called a two dimensional point charge. The electric potential due to the two dimensional point charge at $\vec{r}'$ is usually defined as $$V(\vec{r}) = \frac{\lambda}{2\pi\epsilon_0}\ln(1/|\vec{r}-\vec{r}'|),$$
where $\vec{r} = (x,y), \vec{r}'=(x',y').$ It is seen that the dimension of the argument of the logarithm function is inverse length, which might seem strange.The explanation is that in two dimensional problems the total charge has to be zero. This means that the logarithm functions [due to different point charges] of the electric potential can always be combined in such a way that the argument is dimensionless, such as in $\ln(b/a).$ 
 A: The following cannot be considered a real answer, but I'm trying to figure what your lecturer meant and to give you some insights accordingly.
The potential difference between points $A$ and $B$ is defined as 
$$V_A-V_B=-\int_A^B \vec E \cdot d\vec r$$
If you compute this quantity for a point charge, you obtain
$$V(r_a)-V(r_b)=kq \left(\frac 1{r_a}-\frac 1{r_b}\right)$$
From which we deduce that
$$V(r) = \frac{kq}{r}+C$$
Now, we usually require that $V(\infty)=0$, from which we obtain $C=0$. This is not the only possible choice. We could also require $V(1 \text{m})=0$, which would imply
$$C=-\frac{kq}{1 \text{m}}$$
Now let's consider the charged infinite line. The potential difference is
$$V(r_a)-V(r_b)=\frac{\lambda}{2 \pi \epsilon_0} \ln\left(\frac{r_b}{r_a}\right)$$
from which we deduce that
$$V(r) =- \frac{\lambda}{2 \pi \epsilon_0} \ln\left(\frac r {r_0}\right)+C$$
where $r_0$ is an arbitrary constant with the same dimensions of $r$, which was included to make the argument of the logarithm dimensionless. Now you see that it is not possible to have $V(\infty)=0$ like for a point charge. It is much more natural to impose $V(r_0)=0$, which implies $C=0$. Maybe what your lecturer tried to tell you had something to do with this...?
However, I don't see how the statement that "in two dimensional problems the total charge has to be zero" could be made meaningful.
