Code center > Bug reports

league out of memory error

<< < (5/7) > >>

EricL:
The two lines I was referring to where exception handling should commented out when running in the debugger are the first list of simload() in MDIForm1.frm and the 6th line of main() in main.frm.  Both lines can be found by searching (Ctlf+F) for the string 'error.sim' and have the form On Error Goto...

You don't need to save before running - your changes will be picked up and respected by the interpreter - but they will be lost if the power goes out or VB itself crashes (happens sometimes).

A breakpoint is simply a place - a specific program line - or certain condition under which you want exectuion to stop.  Put the cursor on a line in the source and hit F9.  Presto, instant breakpoint.  It can be as simple that, which is basically stop here if you ever get to this line" or as complicated as a watch expression e.g. "stop wherever you are if this variable or complicated expression ever has this specific value".  Happy debugmas!

Jez:

--- Quote ---the 6th line of main() in main.frm
--- End quote ---

Can't find that .frm, search also only gave me the one reply.

have ' the one line in;
'On Error GoTo fine ' Uncomment this line in the compiled version error.sim
  If path = "" Then
    optionsform.Visible = False
    CommonDialog1.DialogTitle = MBLoadSim

That is all I had to do I hope, not ' the subset.

I reckon another few days before  I hit the overlow bug so no rush

Here's hoping my chipset fan, which resisted both the vacuum cleaner and cotten buds before a good puff sorted it, holds out a little longer...
(/me listens for nasty girinding soundings that preceeded last two graphics crashes)

EricL:

--- Quote from: Jez ---Can't find that .frm, search also only gave me the one reply.
--- End quote ---
Also called Form1



--- Quote from: Jez ---have ' the one line in;
'On Error GoTo fine ' Uncomment this line in the compiled version error.sim
  If path = "" Then
    optionsform.Visible = False
    CommonDialog1.DialogTitle = MBLoadSim

That is all I had to do I hope, not ' the subset.
--- End quote ---
That's it.

Griz:

--- Quote ---The immediate window is a mostly a place where you can execute code you write on the fly while debugging - code that is not part of the program, but code you want to execte right then for help in debugging.  Say you hit a breakpoint and want to step through from there, but with a certain set of variables having a certain set of values, say to reproduce a bug further down the line.  Well, instead of waiting for the program to happen upon those values, you can change those varaible values manually in the immediate window e.g. x = 5, y = 10, etc. and then proceed.  The code you type in the immediate window is, well, immediate.  It does not become part of the DB source code - it only executes right there and then is gone.  Also useful for things like printing variable values at breakpoints.
--- End quote ---

good to know. thanks. I'll try to put this all into a Debugging Guide ...
so any other hints/techniques you can share will be appreciated.
you just got to put them somewhere where I can find and gather them.
hmmmm ... I know of such a place.


--- Quote ---Wiki is for static, long lived information.  Forum is for dynamic discussion.
--- End quote ---
that sounds like a pretty good guideline. however, finding things here on the forum
still leaves something to be desired ...
esp if one, such as a newbie, doesn't already know it exists.
I still have a hard time tracking down messages/topics I KNOW are here somewhere ...
they tend to end up being scattered about in different threads ...
and even then have spent a great deal of time searching for them, sometime unsuccessfully.
so I'm still for making it as easy as possible for those folks who haven't been in on all the
discussions from the beginning, to be able to find their way around ...
and hopefully have them aware that there is also such a thing as the wiki available to them.
some may find it easier and less confusing to work there. I certainly do.
at least the search function here seems to now at least sorta work.
there is a search function on the wiki as well.
 

--- Quote ---Most of the league code is in the F1mode module though some is in with the options form
code and a few other places.
--- End quote ---
ok. thanks. I'll keep looking.


--- Quote ---Any assistance that helps narrow down a bug is totally appreciated.  The ones with the long repro times are the worst.  If someone catches one of these in the debugger, that is gold since they are so hard and time intensive to reproduce.  Even just telling me what line it occurs on and nothing else helps tremendously.  Non-programmers who are willing to run under VB can really be tremendously helpful even without any understanding of the source code or programming skills.  Some bugs can be environment specific and hard to reproduce execpt on a specific machine.  Getting someone to run DB under VB on that machine can be serious money and save days of debugging elsewhere.  Many thanks!
--- End quote ---

for those running/searching for those errors in long sims ...
if you run the compiled version and do an occasional save ...
[this can be automatically done, yes?]
then hopefully when an error is encountered and an error.sim
file produced ...
you can then fire it up in VB, ensuring the error trapping is
commented out, load in the error sim or ideally, the save that
you captured which occurred just prior to the error ...
and then run it from there using the debugger.
this may not always work, as there seem to be many varialbles ...
but I have had it do exactly this for me in the past ...
even using the generated error.sim ...
the error still existing ...
which can certainly save a great deal of time debugging.
[remember to save/rename the error.sim to keep on file
for continued debugging, so it isn't overwritten]

onward

Jez:

--- Quote ---finding things here on the forum
still leaves something to be desired ...
--- End quote ---

As would finding things on wiki if we moved the discussions over there. It is the act not the arena that causes the chaos!

EDIT

Oh well, I have managed to get an error of sorts, I got fed up with 12 hour long rounds and used the win button, it didn't like that and after declaring one of the bots as winner the competitors disappeared and I am left with just veg.  
Nm, I needed to turn pc off today so I could get at its innards. Will restart this later.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version