Author Topic: not caught by compiler  (Read 2319 times)

shankle

  • Member
  • ****
  • Posts: 835
not caught by compiler
« on: July 15, 2013, 10:01:52 PM »
WJR might or might not want to add something to catch this.....
 I coded this in error - invoke SetFilePointer, [hFile], [NULL],[NULL],File_Begin
GoAsm did not flag it as an error. Had to find it the hard way....
Obviously should be - invoke SetFilePointer, [hFile],NULL,NULL,File_Begin
Thought you might want to know

satpro

  • Member
  • **
  • Posts: 116
Re: not caught by compiler
« Reply #1 on: July 16, 2013, 10:33:00 PM »
Hi Shankle,

Doesn't "NULL" just translate to a "zero" when compiling?  I would think that GoAsm was just following your instruction to invoke with two params containing the contents of address $0000000, and that it's not a bug at all, but just a crashed program?

Part of the joy of assembly... :biggrin: