f



[ace-users] test program failed on running Static library of ACE 5.3.1 on AMD 64 Windows platform

Hi,

I tried building ACE 5.3.1 on an AMD 64 bit Windows platform. After that I
tried to run the following test program with static ace release library
(aces.lib).
The output was always some junk and debugging gave me a hint that as soon as
::set fn. is called the parameter values become, invalid looks like a stack
corruption. 

I verfied that the library did get built successfully on AMD64 platform by
doing needed build changes.

Please suggest,
Thanks,
Meenakshi

 
#include <stdlib.h>
#include <stdio.h>
#include <wchar.h>
#include <ace/INET_Addr.h>

int main(int argc, char **argv) {
  ACE_INET_Addr addr;

 addr.set(2821, "meenakshi.yahoo.com");
// addr.set("meenakshi.yahoo.com:2821");

  printf("port=%d host=%s\n", addr.get_port_number(), addr.get_host_name());
  return 0;
}

0
Meenakshi
11/26/2004 6:22:59 AM
comp.soft-sys.ace 20326 articles. 1 followers. marlow.andrew (167) is leader. Post Follow

1 Replies
643 Views

Similar Articles

[PageSpeed] 8

fwiw your test program seems OK using ACE-5.4.1 on an AMD64 machine 
under Linux (also OK using a 32-bit Xeon cpu). You should probably 
upgrade your version of ACE to get more help from this list.

hth

                            - Tom

-- 
Thomas Lockhart
Supervisor, Realtime Software Group
Interferometry and Large Optical Systems
Caltech/JPL

0
Thomas
11/26/2004 10:26:03 PM
Reply: