News:

Building a 3D Ray Tracer  By stevmjon

Main Menu

3 error/crash questions

Started by Jeku, January 24, 2005, 02:12:26 AM

Previous topic - Next topic

Jeku

Sorry if these have already been asked (I did a search)...

#1

Whenever I try and use network commands the interpreter crashes out.

For example I tried the code in the Help docs for the command HTTPRequestString, ran it, and it crashed again.  I've restarted the IDE a few times.

I don't have a copy of the error as there is no description.  It's a basic crash (i.e. PlayBasic has caused an error and will shut down.)

I also tried compiling the code and running the EXE --- same thing.

#2

Often when I compile it says the linker timed out, but the EXE still seems fine.  Should this be anything I worry about?

#3

Quite often I get an exception error with the IDE when I'm editing code.  It seems to happen more often when I'm down near the bottom last 2 or 3 lines of code.  I would get a screenie except now I can't reproduce the bug!  Murphy's law...
**
Automaton Games - Home of WordTrix 2.0, WordZap, and GameBasic
Jeku's Music - Easy listening electronic...
**

empty

#1
#1
Yep, there's something screwed up with that on some machines. I'm not quite sure why this happens yet.

#2
No need to worry about this one. :) It's a simple timing problem. With the next update we'll change the way how compiler and res binder communicate so that this shouldn't happen anymore.

#3
Interesting. Can you continue after that error or does the IDE completely crash?

Jeku

QuoteInteresting. Can you continue after that error or does the IDE completely crash?

Yes, you can still continue.  Darn it I just got it again, too, but I was typing and hit 'Enter' before I could stop myself :|  Don't worry I'm bound to get it again quickly.
**
Automaton Games - Home of WordTrix 2.0, WordZap, and GameBasic
Jeku's Music - Easy listening electronic...
**

empty

#3
Could you try switching off the auto case correction (Preferences -> Editor), and see if it still happens?

kevin

Yeah i still get crashes with case correct on also..

empty


kevin

Nah, i get the odd 'exception' even with it off.  Another bizarre one is that sometimes the cursor stops working entirely and you can no longer editor the source.  I.e You hit enter/ type and nothing happens..  You can still save etc..

Jeku

Since the HTTP commands crash for me (which is very sad to me particulary because I want to setup an online high score table for WordZap), is there any way for me to have a browser window from within PB?  Maybe even in a separate window?  I would like it so the user can't see the URL, but it wouldn't be the end of the world if they could.
**
Automaton Games - Home of WordTrix 2.0, WordZap, and GameBasic
Jeku's Music - Easy listening electronic...
**

kevin

#8
Nah there's nothing built in to do that..   I'm getting crashes with the Http commands also,  very tempted to remove until we can solve whatever the issue(s) are with them. :(

Jeku

#9
Hmmm...  seems that some of the commands crash only when used a certain way.  For example:

PlayBASIC Code: [Select]
  Http = GetFreeHttp()
; Open a HTTP Channel
OpenHTTP Http, "Tutorial", "", ""
; Request the size of a file
HTTPRequestSize Http, "http://www.automatongames.com/wordzap/WordZap.zip"
; Get the size
Size = GetHttpTotalSize(Http)
; print the size
Print size
; close the HTTP channel
CloseHTTP Http
; Display the Screen and wait for the user to press a key
Sync
WaitKey



Does not crash for me.  However,

PlayBASIC Code: [Select]
Cls 0

me=GetFreeHttp()

OpenHTTP me,"GetSize","",""
HTTPASync me,1

HTTPMode me,1
HTTPRequestSize me,"http://files.thegamecreators.com/darkbasic/trial/dbdemo113.exe"


Repeat
Cls 0
Print "loop:"+Str$(lp)
Print GetHttpTotalSize(me)
Inc lp
Sync
Until GetHttpStatus(me)=1

Print "Done"


CloseHTTP me
Sync


WaitKey




crashes.  It shouldn't though because it's almost exactly the same as the first code snippet.
**
Automaton Games - Home of WordTrix 2.0, WordZap, and GameBasic
Jeku's Music - Easy listening electronic...
**

kevin

So the first one works for you ?,  they both crash here..  :(((

Jeku

#11
Yes, the first one works for me.  That is so bizarre--- perhaps it's machine independant (which probably makes things harder on your side).

EDIT:

Okay, I just tried it again, and now they both don't work.  But the first one worked earlier.  I guess this is good news as it's probably NOT machine independat  :unsure:
**
Automaton Games - Home of WordTrix 2.0, WordZap, and GameBasic
Jeku's Music - Easy listening electronic...
**