[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 173: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 174: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
CAPE-OPEN Discussions about use and implementation of the CAPE-OPEN standard 2015-07-08T14:11:07+00:00 http://cape-open-forum.org/feed.php?f=17&t=469 2015-07-08T14:11:07+00:00 2015-07-08T14:11:07+00:00 http://cape-open-forum.org/viewtopic.php?t=469&p=1433#p1433 <![CDATA[Re: COLTT influences Unit Operation behaviour?]]>
A simple solution is to AddRef both of these collections in the unit operation constructor.

The initial reference count in an earlier version of the wizard was 1 on COM objects. I have changed that to zero, so that they can be immediately assigned to smart pointers, without tricks like Attach. A quick scan on your objects: this will be a problem for the objects (materials, parameters) that you add to the collections (the collection in your project does not keep a reference count on its members).

So the nicer solution: switch to the new collection object generated by the wizard. And use COMSmartPtr objects instead of direct pointers.

I see you commented out the AddRef in the get_parameters and get_ports; this will surely lead to a crash as well. They will be Released() by the software that makes the call.

May I suggest you generate a new project with the wizard? If you add a unit operation to the project, it will ask you to generate a unit operation frame-work. This will be nicer than what you have now, a much better starting point. The collection issues will be solved. There is example code on how to create ports and parameters in the generated unit operation code. Validate will be partially implemented. And I do not think re-doing your Calculate is a lot of work (compared to fixing what you have now).

Statistics: Posted by jasper — 08 July 2015, 14:11


]]>
2015-07-08T12:50:33+00:00 2015-07-08T12:50:33+00:00 http://cape-open-forum.org/viewtopic.php?t=469&p=1432#p1432 <![CDATA[Re: COLTT influences Unit Operation behaviour?]]> But that does not change the general behaviour:
If I let COLTT log my UnitOperation, I can solve the flowsheet (COFE32 and COFE64, COLTT log attached).
Without logging, the flowsheet immediately crashes when trying to add the UnitOperation (COFE32) or error messages appear and it is not possible to connect streams (COFE64).
For the latter case I attached screenshots.
COFE64_no_rpc_server.png

My initial question remains:
Is there an explanation why the behaviour depends on the logging?

I will send the source files via email.

Statistics: Posted by greTol — 08 July 2015, 12:50


]]>
2015-07-08T09:13:19+00:00 2015-07-08T09:13:19+00:00 http://cape-open-forum.org/viewtopic.php?t=469&p=1431#p1431 <![CDATA[Re: COLTT influences Unit Operation behaviour?]]> Statistics: Posted by jasper — 08 July 2015, 09:13


]]>
2015-07-08T08:44:12+00:00 2015-07-08T08:44:12+00:00 http://cape-open-forum.org/viewtopic.php?t=469&p=1430#p1430 <![CDATA[Re: COLTT influences Unit Operation behaviour?]]> Statistics: Posted by greTol — 08 July 2015, 08:44


]]>
2015-07-06T07:57:11+00:00 2015-07-06T07:57:11+00:00 http://cape-open-forum.org/viewtopic.php?t=469&p=1429#p1429 <![CDATA[Re: COLTT influences Unit Operation behaviour?]]> Statistics: Posted by jasper — 06 July 2015, 07:57


]]>
2015-07-08T08:44:38+00:00 2015-07-03T15:54:15+00:00 http://cape-open-forum.org/viewtopic.php?t=469&p=1428#p1428 <![CDATA[COLTT influences Unit Operation behaviour?]]> Statistics: Posted by greTol — 03 July 2015, 15:54


]]>