Search Results

Search: Posts Made By: ctote
Forum: Programming 03-09-2011
2,829
Posted By ctote
[/LIST] 1. Yes, it's the same pointer 2....
[/LIST]
1. Yes, it's the same pointer
2. Destructor doesn't do anything
3. Everything is allocated with 'new' and deleted with 'delete'
4. Yes, but they appear to be within bounds. I'm not sure...
Forum: Programming 03-09-2011
2,829
Posted By ctote
Any idea what this would mean? I've...
Any idea what this would mean?




I've checked in Windows, and some of the member pointers of this object I'm deleting are NULL - would that cause an issue on UNIX?
Forum: Programming 03-06-2011
2,829
Posted By ctote
Hey, thanks for the reply. I originally thought...
Hey, thanks for the reply. I originally thought something similar to this, but the code works fine in Windows.
Forum: Programming 03-06-2011
2,829
Posted By ctote
Segfaults on pointer deletion
Hey Everyone,

I have a check similar to this:

if (ptr)
{
delete ptr;
ptr = null;
}When I'm debugging in AIX (using dbx), if I attempt to print the value of 'ptr' it says "ptr is not...
1,239
Posted By ctote
How can I set DBX to break on an Access Violation?
I'm trying to debug a service crash, and would like to break on an access violation - is this possible?
Forum: Programming 02-25-2011
1,868
Posted By ctote
Cannot get dbx to work correctly with a running process
Hi everyone,

I've been struggling with this for a few weeks now. I'm trying to debug a running process with dbx on an AIX box.

The command I'm using is 'dbx -a <pid> core'
There is a function...
Forum: Programming 02-17-2011
5,243
Posted By ctote
Interesting question - didn't think about that. ...
Interesting question - didn't think about that. I'll check now. Thanks

---------- Post updated at 12:30 PM ---------- Previous update was at 12:27 PM ----------

For what it's worth, when I...
Forum: Programming 02-17-2011
5,243
Posted By ctote
AIX dbx - attaching to a process that is crashing
Hey everyone,

I'm trying to attach to a process that is crashing so I can debug the source code. I've tried this:

dbx -a PID
stop at "file.cpp":line#

However, nothing ever breaks. The...
Forum: Programming 02-17-2011
1,412
Posted By ctote
This is in AIX.
This is in AIX.
Forum: Programming 02-16-2011
1,412
Posted By ctote
dbx - break on access violations
Hey everyone,

Is there a way to make dbx break on access violations?
Forum: Programming 02-14-2011
2,909
Posted By ctote
Wow, great! Thanks for the help, this exactly...
Wow, great! Thanks for the help, this exactly what I was looking for!

---------- Post updated at 10:28 AM ---------- Previous update was at 10:22 AM ----------

If the limit is exceeded, does...
Forum: Programming 02-11-2011
2,909
Posted By ctote
dbx - attach to process, break when crash
Hey everyone,

I have a process that is crashing, and I'd like to have some way to see where it crashes. Is this possible?
Forum: Programming 01-26-2011
7,323
Posted By ctote
I did. Thanks for all of your help!
I did.
Thanks for all of your help!
Forum: Programming 01-26-2011
7,323
Posted By ctote
---------- Post updated at 01:55 PM ----------...
---------- Post updated at 01:55 PM ---------- Previous update was at 01:49 PM ----------

Everything is working again - the segfaults have gone away. For some reason my new code wasn't being used...
Forum: Programming 01-25-2011
7,323
Posted By ctote
I think the easiest thing for me to do at this...
I think the easiest thing for me to do at this point is post both of my files. I've already posted a large chunk, and those are probably outdated now.

Flow begins at prepare_smtp_message()...
Forum: Programming 01-25-2011
7,323
Posted By ctote
I guess I'm a little confused - why can I do...
I guess I'm a little confused - why can I do '*pst = conn;' in windows but not in AIX?

The typedef in windows is:
typedef void FAR * socktag;

And in AIX its:
typedef void * socktag;
...
Forum: Programming 01-25-2011
7,323
Posted By ctote
I agree. So I did *pst = (void *)conn; ...
I agree.

So I did
*pst = (void *)conn;
because just 'pst' wouldn't compile. But I'm still getting the problem where pst stay 0 the whole time. Any idea what else to try?
Forum: Programming 01-25-2011
7,323
Posted By ctote
Great, thanks for the help. I'll keep debugging...
Great, thanks for the help. I'll keep debugging that - I figure we're very close to figuring out these segfaults. We might actually rewrite the whole component.
We just got word from our client...
Forum: Programming 01-25-2011
7,323
Posted By ctote
pst is 0 when it enters. Maybe this will provide...
pst is 0 when it enters. Maybe this will provide more insight into what I'm trying to do:
int gensock_getchar (int st, int wait, char * ch)
{
int retval = 0;
connection *conn;

conn =...
Forum: Programming 01-25-2011
7,323
Posted By ctote
Ok I've ran into a bit of a snag. I'm trying to...
Ok I've ran into a bit of a snag. I'm trying to do something similar to this:


typedef void * socktag

int gensock_connect (char * hostname,
char * service,
...
Forum: Programming 01-24-2011
7,323
Posted By ctote
Ok so here's what happens. It goes here: ...
Ok so here's what happens.

It goes here:

int get_smtp_line( void )
{
char ch = '.';
char in_data [MAXOUTLINE];
char * index;
int retval = 0;

index = in_data;

cout...
Forum: Programming 01-24-2011
7,323
Posted By ctote
Oh yea, duh. I wasn't sure if it was even making...
Oh yea, duh. I wasn't sure if it was even making into the function or not. When I try to step in, it blows up.


int get_smtp_line( void )
{
char ch = '.';
char in_data [MAXOUTLINE];
...
Forum: Programming 01-24-2011
7,323
Posted By ctote
Ok no problem - I can fix that back. Thanks ...
Ok no problem - I can fix that back. Thanks

---------- Post updated at 03:46 PM ---------- Previous update was at 12:42 PM ----------

Ok great. I'm getting a socket connection now!

Now the...
Forum: Programming 01-24-2011
7,323
Posted By ctote
It was being used here: //...
It was being used here:
// --------------------------------------------------
// resolve the service name
//

// If they've specified a number, just use it.
if (gensock_is_a_number...
Forum: Programming 01-24-2011
7,323
Posted By ctote
constructor: connection::connection (void) { ...
constructor:
connection::connection (void)
{
the_socket = 0;
in_index = 0;
out_index = 0;
in_buffer_total = 0;
out_buffer_total = 0;
in_buffer = 0;

in_buffer = new...
Showing results 1 to 25 of 42

 
All times are GMT -4. The time now is 03:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy