Pierre Doyon wrote:
> Hi,
>     I try to allocate memory in my XPCOM component as follow:
> 
>     PRUnichar* ptrPRUnichar =
> reinterpret_cast<PRUnichar*>(nsMemory::Alloc(20)) ;
> 
> The result address of " ptrPRUnichar " is NULL. I don't understand, what
> is wrong.

How are you compiling your component? What compiler and linker flags are you
using?

--BDS
_______________________________________________
dev-tech-xpcom mailing list
dev-tech-xpcom@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to