1. Re[4]: SHBrowseForFolder
- Posted by "Thomas Parslow (PatRat)" <tom at almostobsolete.net> May 17, 2002
- 417 views
> Thomas, > It fails at "release_mem(memfolder)", but only when the parent folder has > approx. 130 files under it, parent with 121 works fine. > Dan Moyer I've found a bug, the only thing I can't work out is why it *doesn't* crash on my machine... Change the aquire_mem line to: memfolder= acquire_mem(0,repeat(' ',512)&0) The parameters passed to repeat were passed in the wrong order, so only 1 byte of memory was actually allocated and SHGetPathFromIDList was overwriting unallocated memory! Thomas Parslow (PatRat) E-Mail/Jabber: tom at almostobsolete.net ICQ: 26359483
2. Re: Re[4]: SHBrowseForFolder
- Posted by Dan Moyer <DANIELMOYER at prodigy.net> May 18, 2002
- 410 views
Thomas, Thanks, your fix seems to work fine (after I added a space inside the single quotes), though I was afraid the "&0" at the end was a typo, guess it's not 'cause it works. Dan Moyer ----- Original Message ----- From: "Thomas Parslow (PatRat)" <tom at almostobsolete.net> To: "EUforum" <EUforum at topica.com> Subject: Re[4]: SHBrowseForFolder > > > Thomas, > > > It fails at "release_mem(memfolder)", but only when the parent folder has > > approx. 130 files under it, parent with 121 works fine. > > > Dan Moyer > > I've found a bug, the only thing I can't work out is why it *doesn't* > crash on my machine... > > Change the aquire_mem line to: > > memfolder= acquire_mem(0,repeat(' ',512)&0) > > The parameters passed to repeat were passed in the wrong order, so > only 1 byte of memory was actually allocated and SHGetPathFromIDList > was overwriting unallocated memory! > > Thomas Parslow (PatRat) > E-Mail/Jabber: tom at almostobsolete.net > ICQ: 26359483 > >