Not sure what happen there, but try this: Public pData As Pointer Public mem As Stream
pData = Alloc(SizeOf(gb.Float)) mem = Memory pData For Write mem.Begin Write #mem, (Server.DateCurrent + Server.DateUTC) As Float mem.Send Print Float@(pData) Jussi On Sun, Sep 11, 2011 at 07:40, Kevin Fishburne < kevinfishbu...@eightvirtues.com> wrote: > My code looks like this: > > ' For writing outgoing UDP data to memory. > Public data As String > Public mem As Stream > > ' Create data string for outgoing transaction queue. > data = Space(8) > mem = Memory VarPtr(data) For Write > mem.Begin > Write #mem, (Server.DateCurrent + Server.DateUTC) As Float > mem.Send > Print data > > It throws signal 11 on the Print statement. > > I have two questions. First is this the correct way to write one or more > variables to a string in memory, and second what's up with the signal > 11? I'm using revision 4094 and will update to the newest revision in a > moment. > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sa...@eightvirtues.com > phone: (770) 853-6271 > > > > ------------------------------------------------------------------------------ > Using storage to extend the benefits of virtualization and iSCSI > Virtualization increases hardware utilization and delivers a new level of > agility. Learn what those decisions are and how to modernize your storage > and backup environments for virtualization. > http://www.accelacomm.com/jaw/sfnl/114/51434361/ > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user