May 18, 2007 ddbg access violation when main defined with no arguments | ||||
|---|---|---|---|---|
| ||||
Hi,
I just got my hands on D programming and setup my environment.
I noticed that the ddbg reports for and access violation exception when main is defined with no arguments. The program compiles and executes just fine.
module main;
import std.stdio;
void main() {
writef("Hello");
}
This breaks...
module main;
import std.stdio;
void main(char[][] args) {
writef("Hello");
}
This doesn't...
I thought it good to share my experiences.
(WinXP SP2, dmd 1.010, ddbg 0.08.1)
Regards,
Emil Ivanov
| ||||
June 04, 2007 Re: ddbg access violation when main defined with no arguments | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Emil Ivanov | i couldn't reproduce the problem (i tried dmd 1.010 and 1.014). could you post what exactly you did?
Emil Ivanov wrote:
> Hi,
>
> I just got my hands on D programming and setup my environment.
>
> I noticed that the ddbg reports for and access violation exception when main is defined with no arguments. The program compiles and executes just fine.
>
>
> module main;
>
> import std.stdio;
>
> void main() {
>
> writef("Hello");
> }
>
> This breaks...
>
> module main;
>
> import std.stdio;
>
> void main(char[][] args) {
>
> writef("Hello");
> }
>
> This doesn't...
>
> I thought it good to share my experiences.
> (WinXP SP2, dmd 1.010, ddbg 0.08.1)
>
> Regards,
> Emil Ivanov
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply