www.digitalmars.com         C & C++   DMDScript  
Archives

D Programming
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.ide
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger
D.gnu
D

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript
electronics



digitalmars.D.debugger - ddbg access violation when main defined with no arguments

reply Emil Ivanov <emil.vladev gmail.com> writes:
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
May 18 2007
parent Jascha Wetzel <firstname mainia.de> writes:
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

Jun 04 2007