dillon@CORY.BERKELEY.EDU (Matt Dillon) (10/16/87)
It seems to do more then simply Remove()ing the library node.... When I have: Remove(lib) FreeMem((char *)lib-lib->lib_NegSize, lib->lib_NegSize+lib->lib_PosSize); In my Expunge() routine for a library it seems to work fine, but when I have: RemLibrary(lib) FreeMem((char *)lib-lib->lib_NegSize, lib->lib_NegSize+lib->lib_PosSize); It crashes. The lib pointer was originally construction with MakeLibrary(). As soon as I resolve the problem I will post a new example library to the net. -Matt
andy@cbmvax.UUCP (Andy Finkel) (10/20/87)
In article <8710161000.AA14835@cory.Berkeley.EDU> dillon@CORY.BERKELEY.EDU (Matt Dillon) writes: > > It seems to do more then simply Remove()ing the library node.... When > I have: RemLibrary calls your Expunge entry point. (that's all) Having the RemLibrary call in your Expunge routine is a less than optimal concept :-) Just use Remove and FreeMem, and you'll be cool and your library will be happy, and another Dillon example will take its place on the net. :-) > -Matt -- andy finkel {ihnp4|seismo|allegra}!cbmvax!andy Commodore-Amiga, Inc. "Interfere? Of course we'll interfere. Always do what you're best at, I always say." Any expressed opinions are mine; but feel free to share. I disclaim all responsibilities, all shapes, all sizes, all colors.