FORUM HOME > TNM > Help
Another 'Program too big to fit in memory' issue..

StoneC0ldPosted on 08/18/04 at 09:14:28

Looking at the other thread, I tried cleaning the database, however, my database had very little useful to delete (1 unused move, but did wipe out most of the tag teams I don't expect to be using...)  No help...

Diagnostics tool output:

TNM.INF found and complete.
INF file indicates 267 wrestlers, 604 moves and 27 managers.
Checking tag team file...
Tag team file ok. Number of teams found: 20
Dives found in database: 77
Wrestlers found in database: 267
Moves found in database: 604
Managers found in database: 27

Main data files appear to be perfectly ok.

Checking circuits.
1 circuits found.

Press any key to commence to Step 3: Checking The Circuits.

Checking World Wrestling Entertainment Circuit.
Circuit is ok.

-------------------

D:\TNM7SE>mem /c

Conventional Memory :

 Name                Size in Decimal       Size in Hex
-------------      ---------------------   -------------
 MSDOS              13088      ( 12.8K)       3320
 KBD                 3296      (  3.2K)        CE0
 HIMEM               1248      (  1.2K)        4E0
 COMMAND             3712      (  3.6K)        E80
 COMMAND             4384      (  4.3K)       1120
 FREE                 112      (  0.1K)         70
 FREE              629296      (614.5K)      99A30

Total  FREE :       629408      (614.7K)

Upper Memory :

 Name                Size in Decimal       Size in Hex
-------------      ---------------------   -------------
 SYSTEM            184304      (180.0K)      2CFF0
 MOUSE              12528      ( 12.2K)       30F0
 FREE               65248      ( 63.7K)       FEE0

Total  FREE :        65248      ( 63.7K)

Total bytes available to programs (Conventional+Upper) :      694656   (678.4K)
Largest executable program size :                             628368   (613.6K)
Largest available upper memory block :                         65248   ( 63.7K)

 15728640 bytes total contiguous extended memory
        0 bytes available contiguous extended memory
 15663104 bytes available XMS memory
          MS-DOS resident in High Memory Area

-----------------------------------

This is with mscdexnt, redir and dosx rem'ed out in a copy of autoexec.nt (made the changes to a copy of the original, and configured the .pif to use the copy).

Most of my themed roster works fine.  However, it consistently gives me the "Program too big to fit in memory" in place of intros and match results for several specific wrestlers.  (Brock Lesnar, Rosey and the Hurricane who use the same theme, Rob Van Dam, Scotty 2 Hotty, and Chris Jericho's exit theme only--intro works fine.)  Everyone else I have themes configured for (which is my entire hired roster in this circuit) work fine.

The Theme Manager plugin demo is installed, and am currently using seperate themes on Jericho only.

I tested it with both the new and old media engines, and with the visualizer on and off.  

Any ideas why TNM7SE (build 2) would work for most, but give this error to only wrestlers using certain themes?
Oliver CoppPosted on 08/20/04 at 15:01:24

Thank you for your detailed analysis of the problem you're having.

I had the exact same problem two weeks before the Theme Music Wizard was released and had been pulling my hair out over it because it only happened for certain themes and not for others.

I tried everything from rearranging the code (this helps sometimes) to rewriting parts of it to porting it to C++ for cross-checking.

The thing is: for some themes Windows own media engine (the one TNM uses) returns EM_OUT_OF_MEMORY errors consistently in every programming language I used to call it. I have arrived at the point where I know that this isn't due to a bug in TNM. What I don't know yet is how to work around it.

Using the mm_open() call, some themes consistently can't be played, whether it's done from a DOS or a Windows application. They are almost always variable bitrate MP3s, although there have been exceptions to that rule.

Having tried 10,000 MP3 files, it played 9.873 and didn't play 127. I was able to get all others to play by reencoding them with an MP3 encoder and changing the bitrate around.

The funny thing is: the Windows Media Player - which also uses Windows' media engine - can play them fine. I wonder if there are some things in the multimedia interfact that aren't documented...
StoneC0ldPosted on 08/21/04 at 04:18:34

Hmmmmm... I would have thought the old engine would have worked because it calls on Winamp to play mp3s, and all the themes I'm using are mp3....  ;)

Will try editting one of them with a different bitrate, and see if that works.. :)
StoneC0ldPosted on 08/23/04 at 06:43:30

Just when I was about to submit a "I tried it and it still didn't work" message after trying quite a few different variations of recoding one of the offending mp3s using cooledit (even tried converting to .wav), I tried the file writer plugin for winamp to write to a new mp3 (at 56kbps instead of 128 :( ), and that theme worked....

Good thing I was slow to hit the "Post" button :P

Thanks! :)