Welcome, Guest. Please login or register.

Author Topic: RunCommand's crashing on 2nd call...  (Read 2044 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: RunCommand's allways returning -1 ?!
« on: June 15, 2005, 07:56:02 PM »
Quote
I'm using LoadSeg to get the BPTR that RunCommand accepts, I suppose the pointer is still valid after using RunCommand or do I have to UnLoadSeg and LoadSeg again..., Nah I don't think so...

You must. Some programs might run fine without reloading, but you really can't know if program x will, thus you can't trust it (the problem is that bss, data are no longer the same as at load time). Pure and reentrant (resident) programs work without reloading obviously.