OmniThreadLibrary forum
News: SMF - Just Installed!
 
*
Welcome, Guest. Please login or register. September 06, 2010, 07:19:22 PM


Login with username, password and session length


Pages: [1] 2   Go Down
  Print  
Author Topic: QuickSort Sample not working with 1.0.4??  (Read 1672 times)
ahwux
Newbie
*
Posts: 27


View Profile
« on: November 23, 2009, 09:46:19 PM »

When I run it in IDE debug mode, I got the following error message:

Project app_20_QuickSort.exe raised exception class Exception with message "TOmniTaskExecutor: Method TQuickSortTask.Sort has invalid signature. Only following signatures are supported: (Self), (Self, const TOmniValue), (Self, var TObject)'.

what should I do?
Logged
Primoz Gabrijelcic
Administrator
Sr. Member
*****
Posts: 289


View Profile Email
« Reply #1 on: November 24, 2009, 04:04:59 AM »

I did a fresh checkout of demo 20 from the SVN and tested it with D2007 and D2009. No problems in any of them.

Is it possible that you have both old and new sources on the computer and the compiler somehow uses the old one to compile the demo?
Logged
ahwux
Newbie
*
Posts: 27


View Profile
« Reply #2 on: November 24, 2009, 09:48:52 AM »

thank u for ur help...i am using D2010....  and its a fresh installation
Logged
Primoz Gabrijelcic
Administrator
Sr. Member
*****
Posts: 289


View Profile Email
« Reply #3 on: November 24, 2009, 10:09:58 AM »

Werider and weirder - 'cause I mistyped in my first reply - I tested with D2007 and D2010. Everything fine.

Can anybody else repeat the problem?
Logged
ahwux
Newbie
*
Posts: 27


View Profile
« Reply #4 on: November 24, 2009, 03:38:53 PM »

Thank you - I double checked and indeed I am using the 1.04 version. Also, the D2010 is with update 2/3 applied, so the Delphi version I use is 14.0.3593.25826.

Any ideas? 
Logged
Erwin
Newbie
*
Posts: 4


View Profile Email
« Reply #5 on: November 25, 2009, 05:56:11 AM »

The QuickSort sample works fine in Delphi 2010 with update 1.
I use Delphi version 14.0.3513.24210
Logged
ahwux
Newbie
*
Posts: 27


View Profile
« Reply #6 on: November 25, 2009, 10:20:32 AM »

Hi Erwin,

I only encountered the exception when I run it in debug mode (i.e., start from the IDE as debug).  Weird.

Logged
ahwux
Newbie
*
Posts: 27


View Profile
« Reply #7 on: November 29, 2009, 12:55:52 PM »

I don't understand why, but after I uninstall RAD Studio 2010 with Update 2/3 (14.0.3593.25826),  and RE-installed the RAD studio 2010 w/ Update 1 (14.0.3513.24210), now everything works!  

This Update 2 and 3 really sucks! Seems CodeGear guys are in a rush in pushing out a pre-mature release.  They cann't even make a bug-free release while they keeping blah blah blah the future plan ....
« Last Edit: November 29, 2009, 01:36:36 PM by ahwux » Logged
Primoz Gabrijelcic
Administrator
Sr. Member
*****
Posts: 289


View Profile Email
« Reply #8 on: November 29, 2009, 01:42:37 PM »

It turns out that I'm also running with Update 1. I'll recheck with Update 2/3.
Logged
ahwux
Newbie
*
Posts: 27


View Profile
« Reply #9 on: November 29, 2009, 02:03:42 PM »

Another issue I encountered with Update 2/3 is - I found the IDE keeping eating up memory at an incremental step of 256K, and that would cause the IDE to crash in 2 hours, on my Vista x64 machine! 

I don't understand why, but somehow  after I uninstalled the VMWare workstation from the machine, then the RAD Studio IDE is running normal again! I mean,  I didn't install the RAD studio 2010 in a virtual machine, I just have VMWare workstation installed along side the RAD studio.

Seems RAD Studio 2010 with Update 2/3 is not that friendly with VMWare!

CodeGear guys seems spend a lot thinking in improving their software copy protection - but ironically that only causes problems for registered users!   In some website I already seen pirated copies flying around laughing at CodeGear's so-called improved licensing mechanism...... what a joke.
Logged
ahwux
Newbie
*
Posts: 27


View Profile
« Reply #10 on: December 15, 2009, 06:23:03 PM »

I updated RAD Studio with the latest Update4/5, now the problem comes again!  Anybody has the same issue?Huh   

I don't understand why, but after I uninstall RAD Studio 2010 with Update 2/3 (14.0.3593.25826),  and RE-installed the RAD studio 2010 w/ Update 1 (14.0.3513.24210), now everything works!  
Logged
Primoz Gabrijelcic
Administrator
Sr. Member
*****
Posts: 289


View Profile Email
« Reply #11 on: December 16, 2009, 01:55:53 AM »

I will test with Update 4/5 as soon as I can manage to install it in the virtual machine. Don't want to break my existing D2010 installation. Most probably Embarcadero people changed something in RTTI code.
Logged
ahwux
Newbie
*
Posts: 27


View Profile
« Reply #12 on: December 16, 2009, 12:30:32 PM »

Dear Primoz,

Yes.... please.... I am using the great Omni Thread library for serious development.  Please let me know if the issue is replicated or it is something wrong I did.

many thanks....
Logged
ahwux
Newbie
*
Posts: 27


View Profile
« Reply #13 on: December 16, 2009, 11:23:04 PM »

When I run it in IDE debug mode, I got the following error message:

Project app_20_QuickSort.exe raised exception class Exception with message "TOmniTaskExecutor: Method TQuickSortTask.Sort has invalid signature. Only following signatures are supported: (Self), (Self, const TOmniValue), (Self, var TObject)'.

what should I do?


The problem seems fixed after I changed the file OtlTaskcontrol, line 1546 from
   if (params^.Flags <> []) or (paramType^.Kind <> tkClass)
to
   if (params^.Flags <> [pfAddress]) or (paramType^.Kind <> tkClass)


and line 1556 from
   else if (params^.Flags = [pfVar]) and (paramType^.Kind = tkClass) then
to
   else if (params^.Flags = [pfVar,pfAddress]) and (paramType^.Kind = tkClass) then


Logged
Primoz Gabrijelcic
Administrator
Sr. Member
*****
Posts: 289


View Profile Email
« Reply #14 on: December 17, 2009, 01:45:44 AM »

Great. >:-/ Now I just have to find a way to differentiate between "barebone" D2010 and  D2010 with update 4/5 Sad Stupid Embarcadero people.
Logged
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM