View Issue Details

IDProjectCategoryView StatusLast Update
0000655Ecere SDKpublic2013-05-19 22:15
Reportersamsam598 Assigned Tojerome  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Target Version0.44 Ryoan-ji 
Summary0000655: Network system initialize
DescriptionIt seems that the networking system needs to be initialized first for those functions to work.Given below code,hostName and address are still blank when MessageBox get called.At this moment an easy way to solve this problem is by declaring a global Service or Socket object:

Socket socket { };

That will get them to work.

[code]
Button button1
   {
      this, text = "button1", position = { 184, 112 };

      bool NotifyClicked(Button button, int x, int y, Modifiers mods)
      {
         char hostName[256], address[64];
         GetHostName(hostName, sizeof(hostName));
         GetAddressFromName(hostName, address);
         //edtHostName.contents=CopyString(hostName);
         //edtHostAddress.contents=CopyString(address);
         MessageBox{contents=hostName}.Modal();
         MessageBox{contents=address}.Modal();
         return true;
      }
   };
[/code]

TagsNo tags attached.

Issue History

Date Modified Username Field Change
2011-10-13 09:10 samsam598 New Issue
2011-10-14 05:52 jerome Status new => resolved
2011-10-14 05:52 jerome Fixed in Version => 0.44 pre-release 2
2011-10-14 05:52 jerome Resolution open => fixed
2011-10-14 05:52 jerome Assigned To => jerome
2011-10-14 05:52 jerome Note Added: 0000475
2012-03-08 15:49 redj Target Version => 0.44 Ryoan-ji
2013-05-19 22:15 jerome Status resolved => closed