The MASM Forum

General => The Campus => Topic started by: haoren108 on April 25, 2013, 01:45:23 AM

Title: Help ! A bug in F:\masm32\examples\exampl07\dynarray\loadfile
Post by: haoren108 on April 25, 2013, 01:45:23 AM
  Help ! Long for you to solve the below bug.
  It seems that i found a bug in F:\masm32\examples\exampl07\dynarray\loadfile.
mov hArr, arrfile$("1.txt");
  When number of lines of '1.txt' is odd,[loadfile.exe] will crash.
Title: Re: Help ! A bug in F:\masm32\examples\exampl07\dynarray\loadfile
Post by: dedndave on April 25, 2013, 02:02:34 AM
which version of the masm32 package are you using ?
this should have been fixed in masm32 v11 - maybe not   :P

http://www.masmforum.com/board/index.php?topic=17159.0 (http://www.masmforum.com/board/index.php?topic=17159.0)

i think the last page or 2 of that thread has a fix
Title: Re: Help ! A bug in F:\masm32\examples\exampl07\dynarray\loadfile
Post by: TouEnMasm on April 25, 2013, 05:09:10 AM
You are right,he is in \examples\exampl10\dynarray\loadfile\loadfile.zip
here is the same using the "ready to use sdk",it run .
He load the "\masm32\include\windows.inc",run it in one directory,not in the open zip.

Title: Re: Help ! A bug in F:\masm32\examples\exampl07\dynarray\loadfile
Post by: jj2007 on April 25, 2013, 06:48:05 AM
Quote from: dedndave on April 25, 2013, 02:02:34 AM
http://www.masmforum.com/board/index.php?topic=17159.0 (http://www.masmforum.com/board/index.php?topic=17159.0)

i think the last page or 2 of that thread has a fix

And caution with the test in the last post, you might exceed the speed limit 8)
Title: Re: Help ! A bug in F:\masm32\examples\exampl07\dynarray\loadfile
Post by: haoren108 on April 25, 2013, 02:58:07 PM
http://www.masmforum.com/board/index.php?topic=17159.0 (http://www.masmforum.com/board/index.php?topic=17159.0)

dedndave's code runs well !
Thanks !
Title: Re: Help ! A bug in F:\masm32\examples\exampl07\dynarray\loadfile
Post by: dedndave on April 25, 2013, 04:50:59 PM
i think the LfModTst.zip attachment works pretty well, as i recall
Title: Re: Help ! A bug in F:\masm32\examples\exampl07\dynarray\loadfile
Post by: haoren108 on April 27, 2013, 08:00:40 PM
Quote from: dedndave on April 25, 2013, 04:50:59 PM
i think the LfModTst.zip attachment works pretty well, as i recall

Yes.I agree with you.