Weird differences between application compiled on Win98 and Win2000
Hi,
I have large network application (multithreaded FTP server based on CSockets). When I compile it on Win2000 MSVC++ 6.0 SP4, once a time some exception occurs or the program becomes frozen up.
When I compile the same code on Win98 MSVC++ 6.0 SP4, I get very stable application with no problems. No exceptions or whatever.
I have proved this conclusion after testing on two machines, on both the same behaviour.
I think it is very strange, do you have any similar experience with differences between compiling on Win98/2000 ? Or what experience do you have with different SP for MS Visual Studio in general ?
[644 byte] By [
s_k] at [2007-11-18 2:13:52]

# 1 Re: Weird differences between application compiled on Win98 and Win2000
That is indeed weird. I'd expect one and the same application (that is the same PE file) to behave differently on Win98 and Win2k. That can happen. But I don't expect the compiler to produce different PEs on Win98 and Win2k, if you really have the same configuration (i.e. same SP, same headers, same lib files, same build settings).
However, I nerver heard of a service pack introducing a new bug, so I'd suggest installing SP5.
# 2 Re: Weird differences between application compiled on Win98 and Win2000
May be it's because of internal #define stuff , or linker macros which controlled the diff.
# 3 Re: Weird differences between application compiled on Win98 and Win2000
Yes, there are differences in the defines, and hence the compiled code, when you compile under win9x and NT. I don't know if the same is true for linking (except, of course, the changes that result from the compile...)
bytz at 2007-11-10 8:58:34 >

# 4 Re: Weird differences between application compiled on Win98 and Win2000
So, just to be clear, the file compiled on Windows 98 works fine on Windows 2000, but one compiled on Windows 2000 does not work on Windows 2000? Also, the file compiled on Windows 2000 crashes on Windows 98?
# 5 Re: Weird differences between application compiled on Win98 and Win2000
Have you been able to localize where the problem occurs in the debugger?
Have you tried SP5? I recall having some problems with SP4 and 2000, and rember rolling back to SP3.
bytz at 2007-11-10 9:00:26 >

# 6 Re: Weird differences between application compiled on Win98 and Win2000
Well, the most problems I found out in debugger is that program is frozen up somewhere in CAsyncSocket::Connect() or some similar basic network function.
Or 'delete ptr' causes occasional problems when compiled under Win2000. When compiled under Win98, no problems with this code. But there are more small differences between these builds..
When I send release build compiled under Win2000 to my boss, he puts it into "rough traffic" and the server crashes to say twice a day (or is frozen up). When I send him build compiled under Win98, the server runs weeks and weeks and no problem...
And one more problem I remember - something with socket windows while higg utilization - server stopped to receive any other messages from system and got frozen up.
Concerning the Service Packs - few my co-workers told me that SP5 is very bad, especially when developing network application and recommended me SP4.
Code built under Win2000 crashes on random platform - Win98/2k/Xp...
Code built under Win98 works fine on every platform.
What are your experience ? Have you any problems with any SP and what problems ?
s_k at 2007-11-10 9:01:36 >
