www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Illegal instruction in GetOpenFileName()

reply Jeremie Pelletier <jeremiep gmail.com> writes:
I get an illegal instruction exception when using GetOpenFileName(), I 
know its strange to post windows issues here, but the bug is only when 
using either DMD or DMC. VC++ 2008 produces a working executable in both 
32bits and 64bits.


The program crashes on a LES instruction (opcode 0xC4) which is an 
invalid instruction in 64bit mode. Why it crashes there is beyond me, 
but its really annoying!

If anyone better at debugging than I am wants to give it a try, it would 
be great, at least to pinpoint what is leading to the crash.

I am using Windows 7 x64 build 7100.

Jeremie
Oct 22 2009
parent Walter Bright <newshound1 digitalmars.com> writes:
Jeremie Pelletier wrote:
 I get an illegal instruction exception when using GetOpenFileName(), I 
 know its strange to post windows issues here, but the bug is only when 
 using either DMD or DMC. VC++ 2008 produces a working executable in both 
 32bits and 64bits.
I'd compare the asm generated by VC++ with DMC++.
Oct 23 2009