We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71c38ca commit 3b8b928Copy full SHA for 3b8b928
arrayfire/library.py
@@ -22,6 +22,13 @@ def load_backend(name):
22
elif platform_name == "Windows" or platform_name[:3] == "CYG":
23
libname += '.dll'
24
libname = libname[3:] # remove 'lib'
25
+ if platform_name == "Windows":
26
+ '''
27
+ Supressing crashes caused by missing dlls
28
+ http://stackoverflow.com/questions/8347266/missing-dll-print-message-instead-of-launching-a-popup
29
+ https://msdn.microsoft.com/en-us/library/windows/desktop/ms680621.aspx
30
31
+ ct.windll.kernel32.SetErrorMode(0x0001 | 0x0002);
32
else:
33
raise OSError(platform_name + ' not supported')
34
0 commit comments