🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #566

Writing a Storage Object

#566
From: Scott R Violet
Date: Wed, 08 Apr 1992 02:35
22 lines
1447 bytes
Hi,
	Lately I have been playing around with Storage objects and have
encountered a few problems.  So, hopefully someone out there knows how
to use them and would be willing to help.  First off if I had the following
structure

struct test {
	int aTestInt;
	int arrayTest[25][3];
};

Would the descriptor string be "{i[25[3i]]}"?
Writing the object to a NXTypedStream seems to go ok.  But then when
I try to read it back in I get a bus error.  When you want to read back
in the stream, how should you initialize the object?  I have tried it
with just testStorage = [[Storage alloc] init]; but that doesn't seem
to work.  And I have also tried initialiving it the same way that I did
with the first, with an initCount..., but that doesn't seem to work either.
In both cases I get a Bus error.  I am hopping that it is something 
simple, anyone have any suggestions?
Thanks in advance,
			-Scott Violet (xepo@csd4.csd.uwm.edu)
Technical Details
Message-ID: <1992Apr8.023553.17506@uwm.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!spool.mu.edu!uwm.edu!csd4.csd.uwm.edu!xepo

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!spool.mu.edu!uwm.edu!csd4.csd.uwm.edu!xepo
From: xepo@csd4.csd.uwm.edu (Scott R Violet)
Newsgroups: comp.sys.next.programmer
Subject: Writing a Storage Object
Message-ID: <1992Apr8.023553.17506@uwm.edu>
Date: 8 Apr 92 02:35:53 GMT
Article-I.D.: uwm.1992Apr8.023553.17506
Sender: news@uwm.edu (USENET News System)
Distribution: usa
Organization: Computing Services Division, University of Wisconsin - Milwaukee
Lines: 22
Originator: xepo@csd4.csd.uwm.edu