To those who are interested, it appears the problem exists with Shell command and function, CreateProcess and all other similar API calls (regardless of async and new process calls). I noticed the compiled exe fights with pbedit.exe while running in debug mode, which indicates that the debugger is trapping API calls before executing them.
A workaround:
Code:
#Compile Exe #Dim All #Include "Win32API.inc" Macro DEBUG_RUNNING = Environ$("PBDEBUG") <> "" Function PBMain () As Long Dim nShellPtr As Dword If Not DEBUG_RUNNING Then nShellPtr = ShellExecute(ByVal %NULL, "open", "http://127.0.0.1/" , ByVal %NULL, ByVal %NULL,%sw_shownormal) End If End Function
Regards
Brett
Leave a comment: