Jump to content



Photo
- - - - -

Visual Pinmame; runtime assertion

VC++ open crt

  • Please log in to reply
9 replies to this topic

#1 Zitt

Zitt

    Neophyte

  • Members
  • Pip
  • 5 posts

  • Flag: United States of America

  • Favorite Pinball: Star Trek: TNG

Posted 18 October 2012 - 06:39 AM

I'm trying to compile vpinmame from source for my printer kit debug at:
http://pinball-mods.com/blogs/?p=278

I compiled the dll source; but I keep getting the following runtime debug assertion:
Posted Image

My goal is to modify the source code in order to begin “simulating” the printer kit from a software prospective. Long term; I want to test the ROM hacks to dump the high scores via serial port and the Serial kit. Once I’ve tested the roms in pinmame; then I can commit them to the real machine. I did have some success compiling pinmame from source; but for some reason I get an assertion about filetypes when running the compiled images.

Anyone have any ideas?
John

#2 toxie

toxie

    VPF Veteran

  • VP Dev Team
  • PipPipPipPipPipPip
  • 5,660 posts
  • Location:berlin, germany

  • Flag: Germany

  • Favorite Pinball: AFM

Posted 18 October 2012 - 06:43 AM

Which visual c did you use? Which compile mode (debug, release)? And what did you test to end up there?

#3 Zitt

Zitt

    Neophyte

  • Members
  • Pip
  • 5 posts

  • Flag: United States of America

  • Favorite Pinball: Star Trek: TNG

Posted 18 October 2012 - 07:04 AM

Which visual c did you use? Which compile mode (debug, release)? And what did you test to end up there?


I tried vs2008net express (free edition) and vs2010net express (free edition).
Debug release.

I can't seem to compile the VPinMameTest.exe... but can compile everything else.
IIRC; VPinMameTest compiled failed due to a resourceing (rc) problem.

CVTRES : fatal error CVT1100: duplicate resource. type:MANIFEST, name:1, language:0x0409
4>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

So; I tried to use the compiled DLL with the downloaded vPinMameText.exe.
This is where I get the error.

I looked again at the obj/vc2010 directories... it appears that
obj\VC2010\InstallVPinMAME\Win32\Debug\InstallVPinMAME_VC2010d.exe
is compiling; and give the same error.

The EXE that isn't compiling may be PinMame32 ie nothing in:
obj\VC2010\PinMAME32\Win32\Debug

#4 toxie

toxie

    VPF Veteran

  • VP Dev Team
  • PipPipPipPipPipPip
  • 5,660 posts
  • Location:berlin, germany

  • Flag: Germany

  • Favorite Pinball: AFM

Posted 18 October 2012 - 12:03 PM

phew.. i don't know if the express versions really work.. you could try the vc2012 release candidate (i think that is still free for download?)..
also i haven't tried the debug build for a while, so maybe try release, at least that gets rid of the assert.. ;)
(might crash then though instead)

#5 Zitt

Zitt

    Neophyte

  • Members
  • Pip
  • 5 posts

  • Flag: United States of America

  • Favorite Pinball: Star Trek: TNG

Posted 19 October 2012 - 06:35 AM

thanks for the info.
I think I tried a release version and it still crashed after that assert would normally come up.
I've download the 2012 trial dvd... Gonna try an install in a VM to see how it goes.

#6 Zitt

Zitt

    Neophyte

  • Members
  • Pip
  • 5 posts

  • Flag: United States of America

  • Favorite Pinball: Star Trek: TNG

Posted 20 October 2012 - 07:40 AM

Ok.I built a brand new clean Windows VM. Download and Installed VS2012 DVD iso as a trial.
Installed nasm in this VM. SVN. SVNed the head.
Installed DirectX sdk 2007.

Worked thru the compile issues.
Same error as in post 1.

#7 toxie

toxie

    VPF Veteran

  • VP Dev Team
  • PipPipPipPipPipPip
  • 5,660 posts
  • Location:berlin, germany

  • Flag: Germany

  • Favorite Pinball: AFM

Posted 20 October 2012 - 08:25 AM

Hmm.. then i 'm out of ideas for now.. also I know more about VP then vpm..
I can compile with vc2008,10&12, and never saw issues with running vpm..
Sorry.. :-(

#8 destruk

destruk

    VPF Veteran

  • VPF Staff
  • 6,307 posts
  • Location:Colorado Springs, CO

  • Flag: United States of America

  • Favorite Pinball: Ultrapin!



Posted 20 October 2012 - 08:02 PM

VPinMAMETest.exe hasn't changed at all since at least 2003. So there really isn't a reason to recompile vpinmametest.exe. In any case, I tried it here with the solution files for vsnet 2003, 2005, and 2008 and haven't gotten that error.
Our VPM compiling guru is Maddes - maybe he can look at it for your configuration/ide setup.

Build a fire, vipers love the heat.


#9 Zitt

Zitt

    Neophyte

  • Members
  • Pip
  • 5 posts

  • Flag: United States of America

  • Favorite Pinball: Star Trek: TNG

Posted 21 October 2012 - 06:55 AM

I did some more work tonight and am able to run PinMame32.
The problem now; I can recreate this error easily by enabling "developer debug" in the misc tab of the STNG roms. IT's the only roms I have downloaded as it's my intended test bed.

#10 destruk

destruk

    VPF Veteran

  • VPF Staff
  • 6,307 posts
  • Location:Colorado Springs, CO

  • Flag: United States of America

  • Favorite Pinball: Ultrapin!



Posted 21 October 2012 - 09:29 PM

Maddes said he'll check into this for you this week.

Build a fire, vipers love the heat.