GNet sample code?

BlitzMax Forums/BlitzMax Programming/GNet sample code?

Diordna(Posted 2006) [#1]
Does any GNet sample code exist? The docs are terse and confusing, to say the least.


kfprimm(Posted 2006) [#2]
In the samples/mak folder in the BlitzMax directory, there are two examples. Also here http://www.blitzbasic.com/Community/posts.php?topic=51171.


Diordna(Posted 2006) [#3]
Ah, thanks. Although why he chose to call that directory "mak" instead of "gnet," I could never guess.


kfprimm(Posted 2006) [#4]
all the files in the mak folder were by mak (aka Mark)


Foolish(Posted 2008) [#5]
When I ran this demo, it looked like there might have been a vicious memory leak. Maybe its too outdated?


Dreamora(Posted 2008) [#6]
BM is GC driven so it can theoretically not memory leak at all.
the GC will always raise up to a given amount before recreation and destruction of objects get in balance.


tonyg(Posted 2008) [#7]
Nope. It is because, for some reason, the Gnetdemo contains GCSetMode 3.
Comment that out and it will do GC.
(GCSetMode 3 is not documented either).