hi Guys!!!

I'm not sure if this is the right forum... but please help..
Please have a look at the code.

int main(int argc, char *argv[])
{
std::cout << "Begining of the program .. " << endl;
RWBag dummy; //might have to create a dummy RWBAG to link the correct code;
std::cout << "This program creates an RWBAG using theFactory"
<< std::endl;
RWBag* b=(RWBag*)(getRWFactory()->create(__RWBAG));

b->insert( new RWCollectableDate ); // Insert today's date
b->clearAndDestroy(); // Cleanup: first delete members,
delete b; // then the bag itself
return 1;
}

I am using Roguewave version 8 on Solaris 10.

The problem is the prg is dumping core while creating the RWCollectable object 
using (getRWFactory()->create(__RWBAG));

I'm not sure if it the type casting or in the create itself.

Thanks,
Rahul.
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to