Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. PhilMumf

    Solaris package creation and file dependencies

    Isn't it just that you have not set your LD_LIBRARY_PATH in the new environment? i.e. setenv LD_LIBRARY_PATH <path to apache/lib>:${LD_LIBRARY_PATH} ======================================== hmm - should I concentrate on C# or Java next?.... ========================================
  2. PhilMumf

    forked proc never starts

    Anyone ever seen a process fork but then the child hangs so never gets to the exec line? fork returns a valid pid and the process does get created since our app has a timeout and it catches the hung subproc at shutdown. There is nothing relevant in /var/adm/messages. There is a cout in the...
  3. PhilMumf

    Pointer/Memory Leak Challenge

    Or looking at the whole thing another way, b = new B; creates a &quot;B&quot; and points to it using &quot;b&quot;. Later you need to free that &quot;B&quot; before changing the pointer to point to a different object. This is what &quot;delete b;&quot; does. ... some code to use the first B...
  4. PhilMumf

    changing an int to string??

    This template converts anything to a string as long as it has a stream operator defined for it (apologies if there are any typos we have an ancient Sun 4.3 C++ compiler which does not have stringstream so our version uses ostrstream) template <class T> string mlToString(T thing) {...
  5. PhilMumf

    calculating user time and time elapsed

    Hi, The standard C library (and hence std c++ lib) provide <time.h> which has &quot;struct tm&quot; and time_t types and a number of associated functions which should allow you all the manipulation you require. I haven't tried the following but it should work ok: // Time(0) returns the...
  6. PhilMumf

    Profiling, tracing function flow in a C++ program?

    ok - hackey way to get at the info. This works on solaris and should work on HPUX too. use &quot;dis -C <exe name>&quot; to get a disassembly of the executable. &quot;dis&quot; is the disassember, the -C option outputs C++ calls in a de-mangled format (otherwise you get them in a mangled C...
  7. PhilMumf

    Ownership and User name....

    You probably have solved this by now, but the following all get the user name I believe on solaris getlogin // this is a posix function too cuserid anyway, copy this into a string as you suggest then compare it to the entered value. You probably don't need the following code but anyway this...
  8. PhilMumf

    Profiling, tracing function flow in a C++ program?

    aha - I just re-read this and think I know what you are after. I think you want a think called a static analyzer. This will process your code and show you a function/class call tree fnA--+fnB | +fnC--+fnD etc. I don't know of any off the top of my head but if you are prepared to pay...
  9. PhilMumf

    Porting Windows dlls to UNIX

    This might not even be necessary. Do the dlls really need to be dynamically loaded? Are there multiple instances of the program running at once or are the libraries used by many different executables at once? Even if they are, is the executable image really that big that they need to be shared...
  10. PhilMumf

    This question goes out to you POSIX

    1) Have you initialised you mutex varible correctly? 2) Are you sure you are using the same instance of the Mutex varible in both functions. 3) If your GUI does not have to update at exactly 30 second intervals, you could just mutex_lock update GUI mutex_unlock sleep(30); // lock may block so...
  11. PhilMumf

    Profiling, tracing function flow in a C++ program?

    I have done something similar myself in the past in a very large C++ program suite. You define a class which logs function entry on creation and function exit in the destructor. NOTE: you don't really want it to log to stdout since it will get all mixed up with your own output. Best to make it...
  12. PhilMumf

    ANSI C functions on unix not working/recognized

    As others have said, apart from ceil() and floor() these are not ANSI functions - that is why you can't find them! The following URL explains which are standard. http://www.cplusplus.com/ref/cstdlib/ Have you tried &quot;man fcvt ltoa&quot; etc to see if they are supported in some special...
  13. PhilMumf

    XML in UNIX

    Sorry the following is all very muddled but should get you started. We use the &quot;xerces&quot; freeware XML parser from apache www.apache.org. We are using version 5 which is quite old now as they are on at least version 7 but 5 works just fine for us. It is not a simple piece of software...

Part and Inventory Search

Back
Top