Hi,

I am now facing a strange problem within a plugin / service code:

- platform = MS WINDOWS
- Mozilla 1.7.5

void* data = nsMemory::Alloc(10);

returns NULL

and

char* char_str = "How now brown cow?";
nsEmbedCString str(char_str);
std::cout << "length = " << str.Length() << std::endl ;

displays 0.

It is to say that :
- this code is called from Javascript,
- this code is in a DLL upon which both my plugin and my service are linked.
- this code USED to work when it was a part of the service


I am linking against xpcomglue.lib, using only SDK libs and includes.

Anyone has an idea ?

Thanks
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to