Hi,

maybe the right one missed the first time. Still no one has idea? Very
disturbing bug.

Thanks and sorry for the double post,
Peter 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Zobolyak Peter
> Sent: Friday, May 19, 2006 6:53 PM
> To: [email protected]
> Subject: GetURL() call crashes on Mac
> 
> Hi,
> 
> porting my plugin to Mac I run into trouble: GetURL() call 
> crashes. This works well on Windows and my whole plugin works 
> well on Mac except this call. While debugging I found the 
> right string in an internal string, so that part is ok.
> Do someone have an idea what's wrong with this call?
> 
> Thank in advance,
> Peter
> 
> This is my code and stack trace:
> 
>       ...
>       ...
>       nsCOMPtr<nsIDOMHTMLDocument> htmlDomDocument = 
> do_QueryInterface(docroot);
> 
>       if (htmlDomDocument)
>       {
>               nsString        astring;
>               wchar_t                 *urlstr;
> 
>               htmldoc = htmlDomDocument;
>               htmldoc->GetURL( astring );
>       ...
>       ...
> 
> 
> 69th row in nsTAString.cpp is:
>     return AsObsoleteString()->Length();
> 
> 
> Program received signal EXC_BAD_INSTRUCTION, Illegal 
> instruction/operand.
> 0x1a671d60 in ?? ()
> (gdb) bt                    
> #0  0x1a671d60 in ?? ()
> #1  0x010b3654 in nsAString_internal::Length (this=0xbfff6d70) at
> nsTAString.cpp:69
> #2  0x010a6528 in CopyUTF8toUTF16 ([EMAIL PROTECTED], 
> [EMAIL PROTECTED]) at ../../../dist/include/string/nsTAString.h:352
> #3  0x0984bb2c in nsHTMLDocument::GetURL (this=0xbfff6d70, 
> [EMAIL PROTECTED]) at nsHTMLDocument.cpp:1576
> 
> _______________________________________________
> dev-tech-xpcom mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-tech-xpcom
> 

_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to