>>Of course it is never displayed - you need a CLEAR EVENTS for the program to continue after the READ EVENTS
>
>I put this code
>
>
>IF llStartApp
> DECLARE INTEGER GetLastError IN kernel32
> DECLARE INTEGER CloseHandle IN kernel32 INTEGER hObject
> DECLARE INTEGER CreateMutex IN kernel32 INTEGER lpMutexAttributes, INTEGER lInitialOwner, STRING lpName
> IF VARTYPE(oAppObj.oMutex.NAME) = "C"
> MESSAGEBOX('Starting')
> DO set_time WITH prefs.set_time, prefs.nosay_time
> DO SomeManager_menu.mpr
> ** put a bunch of messageboxes here as well
> ...
>
>
>The application is started OK, but I see 0 messageboxes. Which probably means this code is never executed and I need to find out where exactly the startup code of the application is.
>
>UPDATE. I think I know where the problem also may lie. I call in the command window do Something with param. I think it's calling the exe rather than main program.
> I think it's calling the exe rather than main program
I'd be surprised
Gregory