madKernel not working under XE2 64 bit?

delphi package - easy access to kernel objects etc.
Post Reply
pvanlogchem
Posts: 11
Joined: Tue Feb 09, 2010 1:05 pm
Location: Netherlands

madKernel not working under XE2 64 bit?

Post by pvanlogchem »

Am I missing something, or is madKernel not compatible with XE2 win64 targets yet?
(Tested using madCollection 2.7.3.0, madKernel 1.3l)

After running the installer, I do have binaries in madKernel\BDS9\win32 but the madKernel\BDS9\win64 folder is emtpy (and I do have a full license).
So I tried a compile with madKernel\source in the SearchPath, but that gave all sorts of errors :

[DCC Error] madKernel.pas(1654): E2100 Data type too large: exceeds 2 GB
[DCC Error] madKernel.pas(1653): E2100 Data type too large: exceeds 2 GB
[DCC Error] madKernel.pas(1654): E2100 Data type too large: exceeds 2 GB
[DCC Error] madKernel.pas(2823): E2064 Left side cannot be assigned to
[DCC Error] madKernel.pas(2828): E2064 Left side cannot be assigned to
[DCC Error] madKernel.pas(3458): E2250 There is no overloaded version of 'WaitFor' that can be called with these arguments
[DCC Error] madKernel.pas(3472): E2250 There is no overloaded version of 'Notify' that can be called with these arguments
[DCC Error] madKernel.pas(4439): E2010 Incompatible types: 'PDWORD_PTR' and 'Cardinal'
[DCC Error] madKernel.pas(4441): E2089 Invalid typecast
[DCC Error] madKernel.pas(4441): E2010 Incompatible types: 'PDWORD_PTR' and 'Cardinal'
[DCC Error] madKernel.pas(4452): E2089 Invalid typecast
[DCC Error] madKernel.pas(4452): E2010 Incompatible types: 'PDWORD_PTR' and 'Cardinal'
[DCC Warning] madKernel.pas(4814): W1012 Constant expression violates subrange bounds
[DCC Warning] madKernel.pas(4814): W1012 Constant expression violates subrange bounds
[DCC Error] madKernel.pas(5080): E2010 Incompatible types: 'PDWORD_PTR' and 'Cardinal'
[DCC Error] madKernel.pas(6092): E2089 Invalid typecast
[DCC Error] madKernel.pas(6217): E2064 Left side cannot be assigned to
[DCC Error] madKernel.pas(7155): E2010 Incompatible types: 'PImageNtHeaders64' and 'PImageNtHeaders32'
[DCC Error] madKernel.pas(8199): E2064 Left side cannot be assigned to
[DCC Error] madKernel.pas(8204): E2064 Left side cannot be assigned to
[DCC Error] madKernel.pas(8614): E2064 Left side cannot be assigned to
[DCC Error] madKernel.pas(9237): E2064 Left side cannot be assigned to
[DCC Error] madKernel.pas(9254): E2064 Left side cannot be assigned to
[DCC Error] madKernel.pas(10098): E2064 Left side cannot be assigned to
[DCC Error] madKernel.pas(10103): E2064 Left side cannot be assigned to

Thanks for any help,
Patrick van Logchem
Every Angle
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: madKernel not working under XE2 64 bit?

Post by madshi »

x64 compatible:
madBasic, madDisAsm, madExcept, madRemote, madCodeHook

not x64 compatible yet:
madKernel, madShell, madSecurity

I do plan to make the missing 3 packages fit for x64, too, but it might take a while before I get to that. Especially madKernel is tricky because it contains LOADS of win32 APIs and low-level hacks, which means that making it x64 capable will take a serious amount of time. And since it's a freeware package, it's not very high on my priority list, sadly.
pvanlogchem
Posts: 11
Joined: Tue Feb 09, 2010 1:05 pm
Location: Netherlands

Re: madKernel not working under XE2 64 bit?

Post by pvanlogchem »

Thanks for the quick reply.

I couldn't find this information on madshi.net itself, so I'm glad you clarified it here.

I'll just work around it then ;)

Cheers,
Patrick

PS: Did you also take a peek at viewtopic.php?f=2&t=27367&p=45071#p45071 already ? TIA!
David Gottschalk
Posts: 4
Joined: Tue Jun 15, 2004 11:17 pm

Re: madKernel not working under XE2 64 bit?

Post by David Gottschalk »

Hello,

Are there any plans to make madKernel work under Win64? I am trying to make an old app run under Win64 and am not looking forward to replacing the existing usage of madKernel.

cheers,

David
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: madKernel not working under XE2 64 bit?

Post by madshi »

It is on my to do list, but there's no ETA, because (obviously) the commercial projects have priority.
Erick
Posts: 9
Joined: Thu Nov 06, 2008 6:33 pm
Location: Canada

Re: madKernel not working under XE2 64 bit?

Post by Erick »

I too have need for madkernel64. Maybe you could charge for either madHook (as you do), or a more expensive madComplete.

Whatever, I'm just saying my Win32 code was a breeze, so I was disappointed ( but understand) the 64 api challenages.

I will be happy to renew my license for a more complete mad64.

Erick
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: madKernel not working under XE2 64 bit?

Post by madshi »

I'm not happy about the lack of 64bit support in madKernel (and madShell) myself. However, I'm in the process of building a house. So I need to put my development resources where the money is. Commercial interest in madKernel has been *very* low compared to madExcept and madCodeHook. Maybe I could sell a couple of madKernel licenses, if I upgraded it to x64. But it would cost a lot of work. If I invest the same amount of development resources in madExcept or madCodeHook (e.g. releasing a major new upgrade), my income will be like a hundred times higher. I hope you can understand that... :sorry:

That doesn't mean that there won't ever be an x64 version of madKernel. There might be, but at this point in time it doesn't look like it's going to be soon.
Erick
Posts: 9
Joined: Thu Nov 06, 2008 6:33 pm
Location: Canada

Re: madKernel not working under XE2 64 bit?

Post by Erick »

I understand. I was able to writ e the native code I needed over the weekend. Thanks for including the source in madkernel, it gave me clue.

Erick
Post Reply