I’m not at my computer right now. So, this will just be rather vague…. Although I’ve used FPC/Lazarus for some things, I haven’t used it to create stuff to run under DOS. But, I have seen some weirdness regarding this sort of thing when targeting current GUIs. I forget the exact details. However, there a few things you might try if you have not already.
Make sure your compiling to the correct memory model. (I think huge, but you’ll need to double check that) You may need to ensure the actual procedure is declared with far. Procedure Test; far; Begin End; Also, you may need assign the address to a plain pointer and typecast the call. Type MyProc = procedure; Var P : pointer; Begin P := @Test; MyProc(P^); End. Also, there are also compiler directives for FPC regarding compatibility. Jerome _______________________________________________ Freedos-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freedos-devel
