mem_init in DllMain will segfault, FIXME
This commit is contained in:
parent
f3476862d1
commit
4e263cd14a
|
|
@ -627,6 +627,9 @@ ngSpice_Init(SendChar* printfcn, SendStat* statusfcn, ControlledExit* ngspiceexi
|
||||||
/*timer*/
|
/*timer*/
|
||||||
init_time();
|
init_time();
|
||||||
|
|
||||||
|
/* put mem_init here, FIXME why not in DllMain? */
|
||||||
|
mem_init();
|
||||||
|
|
||||||
/*IFsimulator struct initilised*/
|
/*IFsimulator struct initilised*/
|
||||||
SIMinit(&nutmeginfo, &ft_sim);
|
SIMinit(&nutmeginfo, &ft_sim);
|
||||||
|
|
||||||
|
|
@ -1918,7 +1921,8 @@ WINAPI DllMain(
|
||||||
case DLL_PROCESS_ATTACH:
|
case DLL_PROCESS_ATTACH:
|
||||||
// Initialize once for each new process.
|
// Initialize once for each new process.
|
||||||
// Return FALSE to fail DLL load.
|
// Return FALSE to fail DLL load.
|
||||||
mem_init();
|
/* put mem_init out of here, FIXME why segfault? */
|
||||||
|
// mem_init();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DLL_THREAD_ATTACH:
|
case DLL_THREAD_ATTACH:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue