mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Changed ProgramStart/ProgramEnd to ensure StaticInits get called
This commit is contained in:
parent
07b993d824
commit
7882632e93
6 changed files with 19 additions and 19 deletions
|
@ -118,9 +118,6 @@ namespace IDE.Debugger
|
|||
[StdCall,CLink]
|
||||
static extern void Debugger_Delete();
|
||||
|
||||
[StdCall,CLink]
|
||||
static extern void Debugger_ProgramDone();
|
||||
|
||||
[StdCall,CLink]
|
||||
static extern int32 Debugger_GetAddrSize();
|
||||
|
||||
|
@ -398,11 +395,6 @@ namespace IDE.Debugger
|
|||
Debugger_LoadDebugVisualizers(fileName);
|
||||
}
|
||||
|
||||
public static void ProgramDone()
|
||||
{
|
||||
Debugger_ProgramDone();
|
||||
}
|
||||
|
||||
public void FullReportMemory()
|
||||
{
|
||||
Debugger_FullReportMemory();
|
||||
|
|
|
@ -498,12 +498,19 @@ namespace IDE
|
|||
}
|
||||
}
|
||||
|
||||
[StdCall,CLink]
|
||||
static extern void IDEHelper_ProgramStart();
|
||||
[StdCall,CLink]
|
||||
static extern void IDEHelper_ProgramDone();
|
||||
|
||||
public this()
|
||||
{
|
||||
sApp = this;
|
||||
gApp = this;
|
||||
mMainThread = Thread.CurrentThread;
|
||||
|
||||
IDEHelper_ProgramStart();
|
||||
|
||||
#if !CLI
|
||||
mDebugger = new DebugManager();
|
||||
mVerb = .OpenOrNew;
|
||||
|
|
|
@ -52,7 +52,7 @@ namespace A0
|
|||
{
|
||||
static ~this()
|
||||
{
|
||||
IDE.Debugger.DebugManager.ProgramDone();
|
||||
IDE.IDEApp.[Friend]IDEHelper_ProgramDone();
|
||||
|
||||
#if BF_PLATFORM_WINDOWS
|
||||
if (IDE.IDEApp.sExitTest)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue