Could you, please, help me to understand, why code:
import std.c.windows.windows;
import std.exception: ErrnoException;
import std.stdio: writefln;
import std.string: toStringz;
void main ()
{
CreateFileA(toStringz("nonexisting file name"), GENERIC_READ,
FILE_SHARE_READ, null
On Sun, 01 Mar 2015 16:39:27 +, novice2 wrote:
> Could you, please, help me to understand, why code:
'cause winapi functions never sets `errno`. `errno` is a libc feature,
and winapi knows nothing about libc. besides, `GetLastError()` is not
required to return correct errno codes.
so you h
On Sunday, 1 March 2015 at 16:39:29 UTC, novice2 wrote:
I wanted it will be:
ex.errno=2, ex.msg=CreateFileA (File not found), lasterror=2
Here's the right way to do this:
// test.d //
import std.c.windows.windows;
import std.string : toStringz;
i
Thans guys!
wenforce not sutable - error code is lost.
may be, i will use modified wenforce, wich throws ErrnoException.
Ha, i found
std.windows.syserror: WindowsException, wenforce;
On Saturday, 28 February 2015 at 03:26:17 UTC, ketmar wrote:
On Fri, 27 Feb 2015 23:58:16 +, amber wrote:
On Friday, 27 February 2015 at 23:50:51 UTC, amber wrote:
Hi All,
[snip]
Thanks, amber
[edited subject]
Sorry I should add that I'm talking about static ctor/dtor of
struct.
Th
Prompt, please, where can I find the software engine written in D?
On 03/01/2015 03:03 PM, Dennis Ritchie wrote:
Prompt, please, where can I find the software engine written in D?
Do you mean vibe.d?
http://vibed.org/
Ali
On Monday, 2 March 2015 at 00:06:26 UTC, Ali Çehreli wrote:
Do you mean vibe.d?
http://vibed.org/
I was referring to the software engine written using the vibe.d.
http://vibed.org/ written using the vibe.d?
Hi,
I am not able to query SQLite3 database files using threads;
without threads it is working fine.
I tried both etc.c.sqlite3 and d2sqlite3, and both seem to be
facing the same issue:
They stuck when executing a select query (using sqlite3_exec(...)
for etc.c.sqlite3 or using RowCache(db.exe
After some analysis, it looks like related to the code parts
which I have omitted "for simplicity", and in particular - I was
creating the query using global variable which was populated in
main() function. It appears that when I spawn the function, it
does not see the value of the global varia
On 03/01/2015 09:47 PM, Vitalie Colosov wrote:
> global variable
A module-scope variable is thread-local by-default. Every thread will
have a copy of that variable.
If you want to share data, you must define it as 'shared' (or __gshared).
> which was populated in main() function
In that cas
On Thursday, 26 February 2015 at 18:37:17 UTC, michaelc37 wrote:
On Thursday, 26 February 2015 at 10:20:31 UTC, Vadim Lopatin
wrote:
Hello!
I'm trying to integrate MAGO into DlangIDE.
I can easy create instance of MAGO DebugEngine, but having
problems with obtaining of IDebugPort which is nee
On 26.02.2015 18:44, Steven Schveighoffer wrote:
Please submit an issue. http://issues.dlang.org
-Steve
Done: https://issues.dlang.org/show_bug.cgi?id=14234
Now it all makes sense. Thank you.
Maybe it would make also some sense if I would have gotten some
kind of exception trying to access the variable which was not
populated by the running thread, instead of successfully getting
empty string... so this would be observed easily during the
testing,
15 matches
Mail list logo