Show all posts by user
Advanced Programming
Page 1 of 1 Pages: 1
Results 1 — 25 of 25
All my results have now been posted on myUnisa!
by
Drewski
-
COS3114
Yes, I was also waiting in vain to receive assignment 2 results on myUnisa when I found it in the post yesterday! It was marked on 11 August. The good news is I'll be writing the exam, but what I would like to know is does anyone have any past exam papers, or any previous experience?
by
Drewski
-
COS3114
I received Assignment 03 results yesterday, but still don't have assignment 02. I hope it's not something to do with the fact that my first submission of assignment 02 was cancelled because I unwittingly sent it in a format that could not be read. myUNISA accepted a second subission which is still pending...
by
Drewski
-
COS3114
I tried your suggestion and it worked like a charm! Please let me know your reasoning behind this fix and thanks very much. Intermittent problems can be very difficult to solve and I hope this one does not re-surface later on.
by
Drewski
-
COS3114
No, not necessarily the second time. It seems to be random, but getting more frequent. What does _duplicate() do?
by
Drewski
-
COS3114
I've done a bit of research into the CORBA definition of Transient exception and come up with the following:
"TRANSIENT indicates that the ORB attempted to reach an object and failed. It is not an indication that an object does not exist. Instead, it simply means that no further determination of an object's status was possible because it could not be reached. This exception
by
Drewski
-
COS3114
I have the following intermittent run-time error that is worrying me:
My open method in Bank_impl.cc basically looks like this:
Account_ptr
Bank_implpen( const char* name, const char* password )
throw(::CORBA:ystemException,
::Bank::NotAuthorized)
{
Account_ptr ret_ptr;
.
.
.
cout << "Returning requested account: " << name <<
by
Drewski
-
COS3114
I would help if I could Marius, but I can't even get tcl up and running. See my last thread posted today.
by
Drewski
-
COS3114
I'm having problems installing the ActiveTcl program from the utils/tcl directory on the 2006 cdrom. The program seems to install correctly, but when I look in the C:\tcl directory I can't find any installer file or "install.sh" script. No other file seems to launch it. Please help!
by
Drewski
-
COS3114
Ok Bob, thanks for the clarification.
by
Drewski
-
COS3114
Thanks Bob. I see it works with an explicitly declared pointer to the array, but not with the implicit pointer! I wonder why...
by
Drewski
-
COS3114
Bob, are you saying then that the reason we use code such as
ctry.name = CORBA::string_dup(temp); is just to get a deep copy, and if so for what reason?
Drewski
by
Drewski
-
COS3114
Hi Bob
As far as I am aware, the name of an array can be used interchangeably as either just a name or as a constant pointer to the first element of the array as in
myClass myArray[5];
myArray is also a pointer to &myArray[0], which is the address of the first element of myArray. Therefore, myArray + 3 is a legitimate way of accessing the data at myArray[3]. myArray + 3 is three myCl
by
Drewski
-
COS3114
Can anyone tell me why it is that we need to explicitly allocate memory in CORBA for some variables as in assignment02 question 8.3 solution:
ctry.name = CORBA::string_dup(temp); // ie allocate memory for temp and assign that location to name.
and not for others such as in account-1 example:
CORBA::Long bal;
---although this is a private member variable to the Account_impl class, it s
by
Drewski
-
COS3114
Thanks for the reply trautw. Does this mean you are tacitly agreeing with the rest of my reasoning? What about the statement that if you tried to code (*myArray) you would get a compile error?
by
Drewski
-
COS3114
In the solution "currency_impl.cc" file for question 8.3, I find the following snippet of code:
for (CORBA::ULong i=0; i<no_ctries; ++i)
{
cout << "Adding country" << endl;
(*retval) = ctry_it->second;
++ctry_it;
}
The line that is bugging me is (*retval) = ctry_it->second;
This is what I think it is saying:
The who
by
Drewski
-
COS3114
I frequently see "exit (1);" exit (2); etc. in catch (CORBA::Exception &error) blocks, such as:
catch (CORBA::Exception &e)
{
cerr << "Oops: " << e << endl;
exit (1);
}
but despite numerous valiant attempts at trying to find meaning to this silly little line in such places as Google, Orbacus manuals etc. I cannot find a hint as to what
by
Drewski
-
COS3114
When following through on the Account-1 example in paragraph 7.2 of TL102 I have the following:
1) Bank server has been started and the file has been copied to:
C:\unisa\mico\demo\poa\account-1\Bank.ref
2) A NameServer has been started with the parameters as given below:
C:\unisa\mico\demo\poa\account-1>nsd -ORBIIOPAddr inet:169.254.162.233:5555 -ORBDebug=IIOP,Transp
by
Drewski
-
COS3114
Thanks Bob,
I did find out what was wrong. You missed the reply to my own problem! (the posting just before yours).
by
Drewski
-
COS3114
I found the problem!
Just in case anyone else is having the same problem here is the solution:
Not only should there be no white space between "NameService=corbaloc", there should be no white space between "/NameService" either in the command:
C:\unisa\myAss02\myAss02(8-1)>nsadmin -ORBInitRef NameService=corbaloc::127.0.0.1:5555/NameService
The command in the bo
by
Drewski
-
COS3114
When I try nsadmin using the command as follows:
C:\unisa\myAss01\myAss01(5-2)>nsadmin -ORBInitRef NameService=corbaloc::169.254.
162.233:5555/ NameService
no name service available, use -ORBNamingAddr ...
C:\unisa\myAss01\myAss01(5-2)>
I get the message "no name service available".
I checked to see if nsadmin is installed and found it under C:\unisa\mico\bin which i
by
Drewski
-
COS3114
Still no ideas on this problem? I haven't found the answer yet!
by
Drewski
-
COS3114
When compiling and running a project in DevC++ that has cin << instructions in it, the console window flashes across the screen so fast, its gone in an instant and I can't enter the input values. When I run the program in debug mode it pauses for input as it should with the console window open on the screen. Once I've entered the input however, the console window disapears again a
by
Drewski
-
COS3114
Perfecto! That fixed it one shot. The program was working as a single file, but when I split it into various parts, the namespace declaration got left out of this section. I was ready to tear my hair out until you came along. Thanks chaospixel!
by
Drewski
-
COS3114
Can anyone tell me what's wrong with this code?(the compiler log file follows after the source code):
Source code:
//File: convertor_impl.cc
#include "convertor_impl.h"
#include <iostream>
#include <string>
// implementation
double Convertor::convert( double amount,
const char* fromCode,
const
by
Drewski
-
COS3114