IDE CRASH when applying FindWindow_() to the PB IDE

Working on new editor enhancements?
AND51
Addict
Addict
Posts: 1040
Joined: Sun Oct 15, 2006 8:56 pm
Location: Germany
Contact:

IDE CRASH when applying FindWindow_() to the PB IDE

Post by AND51 »

Hello!

I want to open a new window that should have the PB IDE as parent window:

Code: Select all

Debug OpenWindow(0, 0, 0, 0, 0, "my title", 0, FindWindow_(0, "PureBasic"))
Make sure that the IDE's title matches the FindWindow-Parameter. When executing this code on WinXP SP2/PB v4.10 the IDE crashes with its favorite error "An Error has been detected in the IDE! (IMA)"

My intention is to create an external tool that should use GetEnvironmentVariable("PB_TOOL_MainWindow") as parent window, but obvously this idea cannot be completed due to this error.

Any ideas?
PB 4.30

Code: Select all

onErrorGoto(?Fred)