mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-22 13:57:32 +02:00
mem_init in DllMain will segfault, FIXME
This commit is contained in:
+5
-1
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user