Any ideas on this?

D

Daniel

Hey guys

I have a app that runs fine on my deve machine, in debug oe or straight from
my installer.

Stick it on another machine, similar spec and when i close a child form it
closes the whole app....essentially crashing but no crash message. It's as
tho i closed it.

On another machine it crashes on closing the second form that pops up.

This form is a directx scene.

So why on my dev machine does this never happen? But happens 100% of the
time on other machines, what difference could their be?
 
K

Kevin Spencer

Video card?

--
HTH,

Kevin Spencer
Microsoft MVP
Digital Carpenter

A man, a plan, a canal,
a palindrome that has gone to s**t.
 
C

Cor Ligthert [MVP]

Kevin,

Why not the sound card?

:)

You are right with your answer but in my idea is this not resolvable by a
newsgroup than just guessing.

Cor
 
S

Shivam

Hi Daniel;
I have had similar problems in the past. The main issue is that the
applications is compiled differently when you compile it in the debug
mode and on release mode. To prevent these kind of problems is to write
saver codes i.e. uses more checkes (Try ..catch), use config files
where possible to reference outside files and always test both the
version compiles in Debug mode and release mode before moving to
production machine.
Hope this is helpful.
Shivam
 
D

Daniel

Hey guys

Thanks for the replies. I know its like guessing Kev but i want opinions and
educated guesses, hoping someone might point me to something. Shiviams
answer is th ekind of thing i was expecting, thanks for the advice.

D
 
K

Kevin Spencer

Well, it was an educated guess, based upon the very limited amount of
information provided, and my own experience with DirectX. DirectX sits
directly on top of the Hardware Abstraction Layer of the OS, and is designed
to work directly with the video card, which does most of the actual drawing
work. Most video cards these days have support for storing and drawing 3D
objects, to some extent or another. DirectX therefore has quite a number of
methods for getting video card support information from the video card, as
not all video cards support all of the same types of operations, and vary in
terms of video memory, etc.

If one builds a DirectX application that draws on one machine, and does not
include enough querying to the video card to find out what it supports,
one's code may attempt to use some function that is not supported by a video
card on a different machine. This would result in the kind of behavior
described by the OP.

The OP was somewhat unclear about what he was doing, but did mention the
term "scene," which is a DirectX term for a 3D "scene". Since he indicated
that the app works fine on one machine, but breaks on others, because
DirectX relies quite heavily on the video card's capabilities, and since the
OP didn't mention anything about the video cards on these other machines, I
concluded that it was most likely that the OP was not aware of the intimate
dependency of DirectX on hardware. Therefore, I somewhat tentatively
suggested that he look at the video card differences between the machines.

--
HTH,

Kevin Spencer
Microsoft MVP
Software Composer

A watched clock never boils.
 
M

Michael Nemtsev

Hello Daniel,

Did u try to run release version

Does other machines have the same Win+SP, DirectX, SDK versions?

D> Hey guys
D>
D> I have a app that runs fine on my deve machine, in debug oe or
D> straight from my installer.
D>
D> Stick it on another machine, similar spec and when i close a child
D> form it closes the whole app....essentially crashing but no crash
D> message. It's as tho i closed it.
D>
D> On another machine it crashes on closing the second form that pops
D> up.
D>
D> This form is a directx scene.
D>
D> So why on my dev machine does this never happen? But happens 100% of
D> the time on other machines, what difference could their be?
D>
---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsch
 
C

Cor Ligthert [MVP]

Kevin,

I know, Herfried has given often the same answer in the newsgroup
language.vb.

However, thanks for your deep explanation, which reminds me again better to
it.

But it still is a gues in my opinion. While than in my idea it can be the
soundcard as well, for which is too DirectX support.

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top