TIP: Click on subject to list as thread! ANSI
echo: fidosoft.husky
to: All
from: andrew clarke
date: 2002-11-19 04:42:08
subject: dates

Tue 2002-11-19 04:24, andrew clarke (3:633/267) wrote to All:

 > It turns out somehow I've caused a version of Msged that uses XMSGAPI 
 > to create bad dates.  It could be a structure alignment problem now 
 > that I think about it.

I found the bug!

4:43 voodoo [e:\devel\csource\xmsgapi-2.3.0\test\xmsg]bcc32 -I..\..\src xmsg.c
Borland C++ 5.3 for Win32 Copyright (c) 1993, 1998 Borland International
xmsg.c:
Turbo Incremental Link 3.0 Copyright (c) 1997, 1998 Borland International

4:43 voodoo [e:\devel\csource\xmsgapi-2.3.0\test\xmsg]xmsg.exe
sizeof(XMSG) == 248 (should be 238)

4:43 voodoo [e:\devel\csource\xmsgapi-2.3.0\test\xmsg]bcc32 -a1 -I..\..\src xmsg.c
Borland C++ 5.3 for Win32 Copyright (c) 1993, 1998 Borland International
xmsg.c:
Turbo Incremental Link 3.0 Copyright (c) 1997, 1998 Borland International

4:44 voodoo [e:\devel\csource\xmsgapi-2.3.0\test\xmsg]xmsg.exe
sizeof(XMSG) == 238 (should be 238)

So, I think Msged and my XMSGAPI code were being compiled using differing
structure alignments.  But I seem to recall there were explicit #pragma
pack statements in the original SMAPI code.  But they're gone now!  What's
going on?!?

Oh, no!!!

2000-08-23 Wednesday 21:16  oliver.grimm

    * msgapi.h (1.23): Removed #pragma pack(1)

-- mail{at}ozzmosis.com

--- Msged/NT 6.1.1
* Origin: Blizzard of Ozz, Mt Eliza, Victoria, Australia (3:633/267)
SEEN-BY: 633/270
@PATH: 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.