Changeset 255

Show
Ignore:
Timestamp:
06/13/07 20:35:47 (1 year ago)
Author:
Ant
Message:

fixed segfault on saving with -sv (don't spwan thread for unit compile)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/leds/LanguageD.d

    r252 r255  
    646646        int id  = compilethread.id; 
    647647        debug(flow ) writefln("LanguageD.checkSintax 10"); 
    648         compilethread.start(); 
     648        //compilethread.start(); 
     649        compilethread.noThread(); 
    649650        debug(flow ) writefln("LanguageD.checkSintax 11"); 
    650         char[] res
     651        char[] res =  getCompileCompleted(id)
    651652        while( res is null) 
    652653        { 
     654            debug(flow ) writefln("LanguageD.checkSintax 11.1"); 
    653655            if (GtkD.eventsPending())  
    654656            { 
     657                debug(flow ) writefln("LanguageD.checkSintax 11.2"); 
    655658                GtkD.mainIteration();    
    656             } 
     659                debug(flow ) writefln("LanguageD.checkSintax 11.3"); 
     660            } 
     661            debug(flow ) writefln("LanguageD.checkSintax 11.4"); 
    657662            res =  getCompileCompleted(id); 
    658         } 
     663            debug(flow ) writefln("LanguageD.checkSintax 11.5"); 
     664        } 
     665        debug(flow ) writefln("LanguageD.checkSintax 11.6"); 
     666         
    659667        // display the results. 
    660668        codeview.clearErrors(); 
     
    714722        int run() 
    715723        { 
     724            noThread(); 
     725            return 1; 
     726        } 
     727         
     728        void noThread() 
     729        { 
    716730            writefln("running %s", cmd.toString()); 
    717731            Spawn spawn = new Spawn(cmd.toString()); 
     
    720734            writefln("completed %s", spawn.getOutputString()); 
    721735            flagCompileCompleted(id, spawn.getOutputString()); 
    722             return 1; 
    723736        } 
    724737         
  • trunk/src/property/Props.d

    r242 r255  
    1818 
    1919module property.Props; 
     20 
     21//debug = target; 
     22//debug = help; 
    2023     
    2124private import dool.String; 
     
    104107        this.tabName = tabName; 
    105108        this.helpText = helpText.dup; 
     109        debug(target) 
    106110        if ( name == "target")  
    107111        { 
     
    109113//          assert(helpText == "To create a new target click 'new'"); 
    110114        } 
     115        debug(help) 
    111116        if ( helpText !is null && helpText.length > 0) 
    112117        {