Page 1 of 1
Illegal function in exe file
Posted: Thu Feb 03, 2011 2:43 pm
The QB4.5 file in the Run mode works correctly. As soon I have made an exe file, an error: Illegal function Call in line No line number in module REGN at adtress 1192:05A6 , appears.
How can I find the illegal fuction by means of that adres?
In my opinion I was trying almost everything!
Posted: Thu Feb 03, 2011 3:40 pm
What is REGN? A register number, a program or BAS file or what?
If you have an ON ERROR handler in the program, it may continue with RESUME NEXT. Try running it with and without an error handler.
Posted: Thu Feb 03, 2011 3:50 pm
REGN.exe is a program. The REGN.bas file works correctly wthout errors, but the exe file gives error: illegal function call in line NO lines number in module REGN at adress 1192:05A6
Posted: Thu Feb 03, 2011 4:53 pm
Post the code or email it. If it uses other files, include them too. NO EXE FILES!
Illegal fuction call
Posted: Fri Feb 04, 2011 4:55 am
the error message is, like I mentioned before. No other code. No programs linked. The *bas version works correctly, without errors.
Re: Illegal function in exe file
Posted: Sat Feb 05, 2011 2:28 am
THOSE ADDRESSES ARE THE LOCATION INTO THE EXECUTABLE.
germarin wrote:... How can I find the illegal fuction by means of that adres?...
I WOULD BEGIN DOING THESE THINGS:
(A) TO RELOAD THE SOURCE USING: QB.EXE /AH/L OR QBX.EXE /AH/L
(B) TO PUT NUMBERLINES TO THE CODELINES SO THE MESSAGE
COULD TELL ME THE EXACT ERROR LINE
(C) TO PRINT A NUMBER ON THE SCREEN EVERY CERTAIN NUMBER
OF LINES, SO, WHEN THE ERROR MESSAGE APPEARS IT WILL
BE AFTER THE LAST NUMBER APPEARED IN THE SCREEN.
Posted: Sat Feb 05, 2011 6:50 am
Thanks for your answer. Reloading gives no change. I hoped that with the adress in the error message, it should be in some way possible to find the location in the *.bas file. To print numbers has in this case no effect. The *.exe program starts in a normal way and is asking for the first input. As soon the input input$(1) is realized, the illegal function appears. When I write a line number at the beginning of a line, is that at the same time a label? Have you any experience with a source file which is working normally,and when making an exe file it gives no severe errors, starting as an exe file normally, prints the tittle correctly, but fails with the first input? I programmed a lot in QB4.5, but it never happens before.
Posted: Mon Feb 07, 2011 1:07 am
YES, LABELS ALSO CAN BE JUST NUMBERS, THE ERROR MESSAGE
... When I write a line number at the beginning of a line, is that at the same time a label? ...
WOULD TELL YOU THE LINE WHERE IT'S LOCATED THE ERROR.
I THINK THE ERROR IT'S RIGHT AFTER THE INPUT$(1),
... As soon the input input$(1) is realized, the illegal function appears ...
WHAT KEY DO YOU PRESS? HOW DO YOU PROCESS THAT KEY?