Quote Originally Posted by HenrikE
Quote Originally Posted by paul_nicholls
Quote Originally Posted by HenrikE
ExecuteFile("gp2xmenu",0,0) (as per above) kills USB, and the only chance to connect it again is to restart the gp2x (or maybe remove/insert the cable). dzz said he'd fixed that in version 6 (demo6b.zip).

I read up on execve() and the second parameter must be an array of strings containing environment variables (for USB to work), but I have no idea what strings to give it.

Any ideas? This is getting annoying. Argh!
I have to admit I haven't used ExecuteFile myself - I use the code below:

Code:
    chdir         ('/usr/gp2x');
    ExecuteProcess('/usr/gp2x/gp2xmenu',['/usr/gp2x/gp2xmenu']);
hope this helps,
cheers,
Paul
Well, I'll use anything that results in an Execve kernel call! (swi 0x90000b). So if yours uses RTL or libs, it's out I'm afraid. Also, my c notation skills are not (yet? ever?) at the point where I can create an array of pointers. All those * and ) and &...

Anyway, made USBnet work, so now USB stays connected and I can compile and test an updated .gpe with 5 button presses. So the problem is not urgent anymore; I have the fastest possible dev setup now.

Thanks for helping me Paul!
Glad I could help in any way :-)
Sounds like you are doing nicely so far...would it be possible to see what you have done upto this point?

cheers,
Paul