www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - AMD & Windows 7

reply "Chris" <wendlec tcd.ie> writes:
Has anyone run into problems with D on AMD processors? I'm 
talking about Windows 7 on a HP625 laptop in particular.
Jun 12 2015
next sibling parent Rikki Cattermole <alphaglosined gmail.com> writes:
On 12/06/2015 10:54 p.m., Chris wrote:
 Has anyone run into problems with D on AMD processors? I'm talking about
 Windows 7 on a HP625 laptop in particular.
Have you checked the issue tracker?
Jun 12 2015
prev sibling parent reply "weaselcat" <weaselcat gmail.com> writes:
On Friday, 12 June 2015 at 10:54:46 UTC, Chris wrote:
 Has anyone run into problems with D on AMD processors? I'm 
 talking about Windows 7 on a HP625 laptop in particular.
Can you be any more specific? What kind of problems?
Jun 12 2015
parent reply "Chris" <wendlec tcd.ie> writes:
On Friday, 12 June 2015 at 12:41:23 UTC, weaselcat wrote:
 On Friday, 12 June 2015 at 10:54:46 UTC, Chris wrote:
 Has anyone run into problems with D on AMD processors? I'm 
 talking about Windows 7 on a HP625 laptop in particular.
Can you be any more specific? What kind of problems?
A DLL in D is loaded into a Python program, but not recognized later. It says: "NoneType doesn't have method called..." It's only on this machine (or processor?). I recompiled it on the machine, but I still get the same error. Unfortunately, we only have Intel processors, so I cannot test it on other AMD processors.
Jun 12 2015
parent reply "Alex Parrill" <initrd.gz gmail.com> writes:
On Friday, 12 June 2015 at 13:16:32 UTC, Chris wrote:
 On Friday, 12 June 2015 at 12:41:23 UTC, weaselcat wrote:
 On Friday, 12 June 2015 at 10:54:46 UTC, Chris wrote:
 Has anyone run into problems with D on AMD processors? I'm 
 talking about Windows 7 on a HP625 laptop in particular.
Can you be any more specific? What kind of problems?
A DLL in D is loaded into a Python program, but not recognized later. It says: "NoneType doesn't have method called..." It's only on this machine (or processor?). I recompiled it on the machine, but I still get the same error. Unfortunately, we only have Intel processors, so I cannot test it on other AMD processors.
That's an error in your Python code.
Jun 12 2015
parent reply "Chris" <wendlec tcd.ie> writes:
On Friday, 12 June 2015 at 14:20:58 UTC, Alex Parrill wrote:
 On Friday, 12 June 2015 at 13:16:32 UTC, Chris wrote:
 On Friday, 12 June 2015 at 12:41:23 UTC, weaselcat wrote:
 On Friday, 12 June 2015 at 10:54:46 UTC, Chris wrote:
 Has anyone run into problems with D on AMD processors? I'm 
 talking about Windows 7 on a HP625 laptop in particular.
Can you be any more specific? What kind of problems?
A DLL in D is loaded into a Python program, but not recognized later. It says: "NoneType doesn't have method called..." It's only on this machine (or processor?). I recompiled it on the machine, but I still get the same error. Unfortunately, we only have Intel processors, so I cannot test it on other AMD processors.
That's an error in your Python code.
I wish it were an error in the Python code so I could fix it, but it works on all other machines (at least those with Intel). It's only on the HP625 with AMD that this error occurs. Another DLL (which isn't mine) also failed to load, although with a different error message. It might be just this particular model, or AMD, I dunno. I couldn't find anything about it on the internet. Atm I'm using dmd 2.067.1, maybe compiling with GDC or LDC will fix it.
Jun 12 2015
parent reply "Benjamin Thaut" <code benjamin-thaut.de> writes:
On Friday, 12 June 2015 at 14:39:55 UTC, Chris wrote:
 I wish it were an error in the Python code so I could fix it, 
 but it works on all other machines (at least those with Intel). 
 It's only on the HP625 with AMD that this error occurs. Another 
 DLL (which isn't mine) also failed to load, although with a 
 different error message. It might be just this particular 
 model, or AMD, I dunno. I couldn't find anything about it on 
 the internet.

 Atm I'm using dmd 2.067.1, maybe compiling with GDC or LDC will 
 fix it.
That sounds more like its the software installed on the machine and not the processor. Are you sure that all microsoft runtime libraries are installed? If you did use the vs 2012 linker to create the D-dll you need to install this redistributable package: http://www.microsoft.com/en-US/download/details.aspx?id=30679 Did you run Depends on the dll? Usually depends will tell you why the dll does not load: http://www.dependencywalker.com/ Kind Regards Benjamin Thaut
Jun 12 2015
parent "Chris" <wendlec tcd.ie> writes:
On Friday, 12 June 2015 at 14:55:15 UTC, Benjamin Thaut wrote:
 On Friday, 12 June 2015 at 14:39:55 UTC, Chris wrote:
 I wish it were an error in the Python code so I could fix it, 
 but it works on all other machines (at least those with 
 Intel). It's only on the HP625 with AMD that this error 
 occurs. Another DLL (which isn't mine) also failed to load, 
 although with a different error message. It might be just this 
 particular model, or AMD, I dunno. I couldn't find anything 
 about it on the internet.

 Atm I'm using dmd 2.067.1, maybe compiling with GDC or LDC 
 will fix it.
That sounds more like its the software installed on the machine and not the processor. Are you sure that all microsoft runtime libraries are installed? If you did use the vs 2012 linker to create the D-dll you need to install this redistributable package: http://www.microsoft.com/en-US/download/details.aspx?id=30679 Did you run Depends on the dll? Usually depends will tell you why the dll does not load: http://www.dependencywalker.com/ Kind Regards Benjamin Thaut
Thanks, I will look into it. The problem is that I don't have the machine anymore (had to return it to user). The weird thing is that the DLL loads correctly (else there would be an error message in the log file), but is a NoneType (i.e. null) when methods are called (e.g. mydll.getSomething()). If it were not loaded, it wouldn't even come to the point at which it calls functions in the DLL.
Jun 12 2015