On 03/12/06, Christian Biesinger <[EMAIL PROTECTED]> wrote:
Ian Malone wrote:
> I'm trying to write a component that takes an nsILocalFile and
> reads from it.  The attached code works in Linux/Firefox 1.5.0.8,
> but in Windows XP/FF 1.5.0.8 it crashes, apparently at fread.

What compiler version are you using? Which of the /Mx options are you using?

The crash would indeed most likely be explained by a mismatched CRT, but
statically linking it isn't the only way to do that :)



Visual Studio 6, SP unknown (I /think/ SP5, cl reports 12.00.8804, link.exe
reports 6.00.8804, both consistent with SP5, but I can't find the SP6 file
list anywhere)

Microsoft (R) Program Maintenance Utility   Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

No configuration specified. Defaulting to MyComponent - Win32 Debug.
       cl.exe /nologo /MDd /W3 /Gm /ZI /Od /I "c:\tmp\gecko-sdk\include"  /FI"c
:\tmp\gecko-sdk\include\mozilla-config.h" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /
D "_MBCS" /D "_USRDLL" /D "XPCOM_GLUE" /FR".\Debug\\" /Fp".\Debug\MyComponent.pc
h" /YX /Fo".\Debug\\" /Fd".\Debug\\" /FD /GZ /c .\MyComponent.cpp
MyComponent.cpp
C:\tmp\xpcomreadtest\src2\MyComponent.cpp(28) : warning C4229: anachronism used
: modifiers on data are ignored
C:\tmp\xpcomreadtest\src2\MyComponent.cpp(72) : warning C4244: '=' : conversion
from '__int64' to 'long', possible loss of data
       link.exe @C:\DOCUME~1\ibm21\LOCALS~1\Temp\nma01384.
LINK : warning LNK4075: ignoring /INCREMENTAL due to /RELEASE specification
  Creating library .\Debug\MyComponent.lib and object .\Debug\MyComponent.exp
LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other libs; us
e /NODEFAULTLIB:library
LINK : warning LNK4089: all references to "plc4.dll" discarded by /OPT:REF
       bscmake.exe @C:\DOCUME~1\ibm21\LOCALS~1\Temp\nmb01384.

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

Reply via email to