Stinking DirectX code only works on my machine
Stinking DirectX code only works on my machine
Stinking DirectX code only works on my machine
Stinking DirectX code only works on my machine
Stinking DirectX code only works on my machine
Stinking DirectX code only works on my machine Stinking DirectX code only works on my machine Stinking DirectX code only works on my machine Stinking DirectX code only works on my machine Stinking DirectX code only works on my machine Stinking DirectX code only works on my machine Stinking DirectX code only works on my machine Stinking DirectX code only works on my machine
Stinking DirectX code only works on my machine Stinking DirectX code only works on my machine
Stinking DirectX code only works on my machine
Go Back  Xtreme Visual Basic Talk > > > > Stinking DirectX code only works on my machine


Reply
 
Thread Tools Display Modes
  #1  
Old 05-09-2008, 10:38 AM
gayouj's Avatar
gayoujStinking DirectX code only works on my machine gayouj is offline
Junior Contributor

* Expert *
 
Join Date: Jan 2006
Location: California
Posts: 317
Angry Stinking DirectX code only works on my machine


Hey all.

I've attached a sample project containing the exact code that I'm dealing with right now.

All I'm trying to do is display a textured mesh in a picturebox. This program runs just fine on my machine, either in the IDE or as an installed executable.

Whenever I install this on someone else's machine (using a setup.exe, so the person's machine doesn't have VS .NET installed) the dang model doesn't get displayed. I just get a blank picturebox. I've looked at this problem from every way I know and can't figure out what's happening here. I've even gotten so crazy as to include DirectX 9 in the distribution as a separate install package with a batch file that first installs DirectX and then installs my program.

I really don't want to just stamp this software with the "Works on My Machine" seal of approval.

I hope someone can help.

Thanks.
Attached Files
File Type: zip DirX.zip (998.9 KB, 19 views)
__________________
http://www.joshuagayou.com
Reply With Quote
  #2  
Old 05-25-2008, 01:48 AM
martonx martonx is offline
Centurion
 
Join Date: Jan 2007
Location: Szeged, Hungary
Posts: 129
Default

Hi,

This code works fine on my machine. This is a very good code. Could you teach me to learn using Directx in VB.Net?
Reply With Quote
  #3  
Old 05-25-2008, 07:53 AM
Rockoon's Avatar
Rockoon Rockoon is offline
Joseph Koss

* Guru *
 
Join Date: Aug 2003
Location: Unfashionable End
Posts: 3,615
Default

Nothing but blank here.

DX 9.0c
XP64 Pro SP2
VB2008 Express
512M NVidia 8800GT


It doesnt seem to ever get into LoadModel()
Reply With Quote
  #4  
Old 05-25-2008, 08:14 AM
martonx martonx is offline
Centurion
 
Join Date: Jan 2007
Location: Szeged, Hungary
Posts: 129
Default

My configuration:

DX 9.0c
XP32 Pro SP2
VB2008 Pro
128M Nvidia 7600 GT

I can rotate the airplane with mouse, it seems perfect.
Reply With Quote
  #5  
Old 05-25-2008, 08:26 AM
Rockoon's Avatar
Rockoon Rockoon is offline
Joseph Koss

* Guru *
 
Join Date: Aug 2003
Location: Unfashionable End
Posts: 3,615
Default

Actualy, no code ever seems to be executed.

A breakpoint in AppWindow_Load never triggers (The startup object is indeed AppWindow, which does in fact display)
Reply With Quote
  #6  
Old 05-25-2008, 09:44 AM
cugone cugone is offline
Centurion
 
Join Date: Nov 2007
Posts: 160
Default

Works fine here.

DX9.0c
XP32 Pro SP3
VS2005 Pro
512M Radeon X1900XT

Hypothesis:

Is XP64 the cause?
Is VB Express the cause?
Reply With Quote
  #7  
Old 05-25-2008, 10:09 AM
Rockoon's Avatar
Rockoon Rockoon is offline
Joseph Koss

* Guru *
 
Join Date: Aug 2003
Location: Unfashionable End
Posts: 3,615
Default

More information

First, note that gayouj included a binary: \bin\debug\DirX.exe

re-unpacked the archive to make sure I had his original binary.

When trying to execute this binary:

Code:
See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.BadImageFormatException:  is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
   at DirX.AppWindow.AppWindow_Load(Object sender, EventArgs e)
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
DirX
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Documents%20and%20Settings/Administrator/Desktop/DirX/bin/Debug/DirX.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


More information, there is no 64-bit managed DirectX so a project which uses MDX must specifically target x32. Unlike my older VB.NET Express installation, VB2008 Express doesnt seem to allow targeting a platform (menu options are grayed-out) so I'm going to try re-installing 2005 Express if I can find it in my archives.


(I find it very odd that running from the IDE simply 'does nothing' instead of giving any errors)
Reply With Quote
  #8  
Old 05-25-2008, 12:47 PM
gayouj's Avatar
gayoujStinking DirectX code only works on my machine gayouj is offline
Junior Contributor

* Expert *
 
Join Date: Jan 2006
Location: California
Posts: 317
Default

Thanks for taking the time and effort on this. These are helpful clues. I'll keep digging from my end based on this insight.
__________________
http://www.joshuagayou.com
Reply With Quote
  #9  
Old 06-14-2008, 11:56 PM
Leade's Avatar
Leade Leade is offline
Junior Contributor
 
Join Date: Jul 2005
Location: Wherever i fall over
Posts: 222
Default

Quote:
Originally Posted by gayouj View Post
Hey all.

I've attached a sample project containing the exact code that I'm dealing with right now.

All I'm trying to do is display a textured mesh in a picturebox. This program runs just fine on my machine, either in the IDE or as an installed executable.

Whenever I install this on someone else's machine (using a setup.exe, so the person's machine doesn't have VS .NET installed) the dang model doesn't get displayed. I just get a blank picturebox. I've looked at this problem from every way I know and can't figure out what's happening here. I've even gotten so crazy as to include DirectX 9 in the distribution as a separate install package with a batch file that first installs DirectX and then installs my program.

I really don't want to just stamp this software with the "Works on My Machine" seal of approval.

I hope someone can help.

Thanks.

Because it's still technically visual basic you will still need to include the runtime files.
If you open the file in dependecy viewer, you get get a list off all the files needed for the application, It came with VB6 but you should be able to get it of the net or from the VB.Net CD.
__________________
Fact: The best ideas come when your smashed of your face. So drink beer and be merry!!!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Stinking DirectX code only works on my machine
Stinking DirectX code only works on my machine
Stinking DirectX code only works on my machine Stinking DirectX code only works on my machine
Stinking DirectX code only works on my machine
Stinking DirectX code only works on my machine
Stinking DirectX code only works on my machine Stinking DirectX code only works on my machine Stinking DirectX code only works on my machine Stinking DirectX code only works on my machine Stinking DirectX code only works on my machine Stinking DirectX code only works on my machine Stinking DirectX code only works on my machine
Stinking DirectX code only works on my machine
Stinking DirectX code only works on my machine
 
Stinking DirectX code only works on my machine
Stinking DirectX code only works on my machine
 
-->