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!
please help
Gerhard
Illegal function in exe file
- burger2227
- Veteran
- Posts: 2466
- Joined: Mon Aug 21, 2006 12:40 am
- Location: Pittsburgh, PA
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.
Ted
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.
Ted
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
- burger2227
- Veteran
- Posts: 2466
- Joined: Mon Aug 21, 2006 12:40 am
- Location: Pittsburgh, PA
Post the code or email it. If it uses other files, include them too. NO EXE FILES!
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
Illegal fuction call
hello,
the error message is, like I mentioned before. No other code. No programs linked. The *bas version works correctly, without errors.
regards Gerhard
the error message is, like I mentioned before. No other code. No programs linked. The *bas version works correctly, without errors.
regards Gerhard
Re: Illegal function in exe file
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.
MY PAGE: http://Qbasic.phatcode.net" target="_blank
(I ONLY USE WINDOWS 98SE YET, BELIEVE IT OR NOT)
(I ONLY USE WINDOWS 98SE YET, BELIEVE IT OR NOT)
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.
Gerhard
Gerhard
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?
MY PAGE: http://Qbasic.phatcode.net" target="_blank
(I ONLY USE WINDOWS 98SE YET, BELIEVE IT OR NOT)
(I ONLY USE WINDOWS 98SE YET, BELIEVE IT OR NOT)