Some random QB error...Conspiracy?

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply

What do you think....

Conspiracy
0
No votes
Random QB error
1
50%
QB hates me
0
No votes
Some higher being got bored
1
50%
 
Total votes: 2

User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Some random QB error...Conspiracy?

Post by Mitth'raw'nuruodo »

Ok, So I've had this prob:

I made my program and ran it, it was fine....I go back to it an hour later and run it CHANGING NOTHING and I get this error (the whole QB exits out and gives me this error, look below).

So then I go back and save it to another file and try running that, SAME THING happened...

I then made everything a REM in my first one then ran it....It ran...well sort of (a bunch of REMs don't do much now do they heh :D )....I then take that and make them not REMs anymore and guess what IT WORKS!

So I then tried the other one...It didn't work!

So I compared them and the ARE IDENTICAL!

Why Is one now running while the other hates me? :shock:


Error:
window appears:

Bar at top: 16 bit MS-DOS Subsystem
In box:
---Microsoft QuickBASIC
---The NTVDM CPU has encountered an illegal instruction.
---CS:07f4 IP:1dbd OP:fe 30 06 8b 46 Choose 'Close' to terminate the application.
Buttons:
------Close------Ignore

Well that's all I know anyone have a guess?
"But...It was so beutifully done"
Z!re
Veteran
Posts: 887
Joined: Wed Aug 04, 2004 11:15 am

Post by Z!re »

You've probably forgotten a VARPTR() that should be changed to SADD() and/or a VARSEG() that should be changed to SSEG() (If you're using QB 7.1)
I have left this dump.
User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post by Mitth'raw'nuruodo »

Thanks Z!re but I wasn't using that stuff....

and I said that one runs now and the EXACT COPY doesn't....heh...
"But...It was so beutifully done"
Z!re
Veteran
Posts: 887
Joined: Wed Aug 04, 2004 11:15 am

Post by Z!re »

If it's the exact same copy, then you will get the exact same error.

And if you're using mouse, or any other such thing, then you use VARPTR/VARSEG
I have left this dump.
Rattrapmax6
Veteran
Posts: 1055
Joined: Sun Jan 02, 2005 2:11 pm
Location: At my computer
Contact:

Post by Rattrapmax6 »

Hay, Mitth, you loading external gfx files with BSAVE BLOAD?, cause I was once getting the same message when I was doing that, thanks to Nek (Thank you very much!!) I don't get it any more..

If you are using that, Go down and look at the "BSAVE, BLOAD?" thread it has the correct code, if not, then I'm of no help in ASM stuff,.. yet,.. :wink:
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post by Mitth'raw'nuruodo »

I am using the mouse and I never touched that Z!re...

And ya I should be getting the same error or not but 1 has it while the other doesn't and they are the SAME!

And no BSave/load for me either....

Ran...success....I didn't change ANYTHING, ran it again...it failed...rebooted....tryed it again...failed....tried other progs....success....tried it again....failed....tried the copy.....failed....made the original a bunch of REMs....success....undid the REMs....success....tried the copy....failed.....Mit confused..... :?....Mit types this thread in confusion....

So that's what my mind thought....
"But...It was so beutifully done"
Rattrapmax6
Veteran
Posts: 1055
Joined: Sun Jan 02, 2005 2:11 pm
Location: At my computer
Contact:

Post by Rattrapmax6 »

Hmm, its something, keep looking,. it did it once to me,..

DO --Run--works--stop--run again--fail--reboot--run again--works-- LOOP

But mine was my BSAVE BLOAD, ohwell, its a prob, just got to find it.. wait, are you using that SuperPut or something?? You might have messed up a line while pasting..

Did you use a .TXT file to move it into QB, or that Edit/Paste thing on the windows tool bar?? .TXT is more solid and won't mess up any of the code.

Just copy every thing into a .TXT, and move it to you QB folder, or where you QB games are loaded from,. Then in QB, back out "*.BAS" and put "*.TXT"..

It loads every thing in, then you can save it as .BAS format and edit it. :wink:
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post by Mitth'raw'nuruodo »

Thanks for that but I already knew that..... :D

Ummm....No I didn't encorperate SuperPut in it yet either.....heh...I was going to do that now.... :wink:
"But...It was so beutifully done"
Z!re
Veteran
Posts: 887
Joined: Wed Aug 04, 2004 11:15 am

Post by Z!re »

Just post the damn source!

Are you using QB45 or QB71!?

Post the source!


The mouse routines use VARSEG/VARPTR!


Damnit....
I have left this dump.
Rattrapmax6
Veteran
Posts: 1055
Joined: Sun Jan 02, 2005 2:11 pm
Location: At my computer
Contact:

Post by Rattrapmax6 »

:shock: Dude, Z!re, whats up with you,..

Your not still ticked over the MOoRPG compo r u? :(
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
Z!re
Veteran
Posts: 887
Joined: Wed Aug 04, 2004 11:15 am

Post by Z!re »

Bah...



Sorry... just easily aggitated lately... Not even that.. I just think people should listen... I don't even get mad, I just appear to be.. lol :lol:
I have left this dump.
Rattrapmax6
Veteran
Posts: 1055
Joined: Sun Jan 02, 2005 2:11 pm
Location: At my computer
Contact:

Post by Rattrapmax6 »

:) , Well, some ppl listin, others don't.. and most don't half the time now,.. :wink: I try my best to listin and take note, I know how it can be when ppl don't, or mishear, ohwell.. thats life.. :roll:
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post by Mitth'raw'nuruodo »

That's ok Z!re I was a little short to..... :D

But I didn't make QB's QB.BI so even if it does use the VarSeg thing it wouldn't be the problem because I haven't had a peep out of that since I first used it....

I'm on QB4.5.

Umm...There's nothing different between the one that works and the one that doesn't...I know that's impossible but I go with facts here....

BTW accually the one that works IS different now because I just put the SuperPut in it AND I LOVE IT! Thanks Z!re on that....I'm also making the HUD routines now.... :D

I still gotta work on my seeking missle algo though.....hmmm....
"But...It was so beutifully done"
Post Reply