forums

TNT Basic Forums > Programming Q&A
Cant call a proc inside a proc...
< Last Thread     Next Thread >
Author
Thread        Post A Reply

02-28-2002 13:08

Posted by:
ERaZer

Find more posts by ERaZer

I can't call another proc inside a proc, it just quits with an error. Can anyone help me?

02-28-2002 13:57

Posted by:
John Treece-Birch

Find more posts by John Treece-Birch

Proc in proc

I've called a procedure from niside a procedure before so I know it works in general. It could be a rare bug. What is the error and what does your code look like?

John

02-28-2002 16:16

Posted by:
ERaZer

Find more posts by ERaZer

First it says (in a normal dialog box with some buttons like "Quit", "Debugger"(Crashes if you press it), "Abort" and "Continue".):
Signal Raised

Condition: inIndex>=0 && inIndex<mIntegers.GetCount()


Function: AccessInteger
File: CVariableStorage.h
Line # 44

Then when I press "Continue", the program quits and in the Output Console it says:
*** Runtime exception caught ***
Line# : 502
Code : Procedure ScreenScrolling()
Error : Assertion failed.
I have used this proc before(before I made the main game loop into a proc) and then it worked.

02-28-2002 16:20

Posted by:
John Treece-Birch

Find more posts by John Treece-Birch

That's a bug!!!!

That's definitely a bug. Can you send us your file so we can fix it?

Thanks,
John

02-28-2002 16:24

Posted by:
ERaZer

Find more posts by ERaZer

Ok

I can do that, I'll send it to your TNTBasic email.

All times are GMT        Post A Reply

Forum Jump:
< Last Thread     Next Thread >

< Contact Us - TNT Basic >

Powered by: vBulletin Lite Version 1.0.1 Lite
Copyright © Jelsoft Enterprises Limited 2000.