Shiny Donkey!
Shiny Donkey! Shiny Donkey! Shiny Donkey!
                  Fake Banner Ads!  Mini-Sites!  
    New Shiny Donkey Posts  more >>
* BREAKING NEWS *  9 out of 10 lepers recommend memories of times past instead of shinydonkey.com

.NET Windows and Malloc Error
[reply]   

06/13/06 06:19 AM EST
posted by jake

Well this is not .NET but thought maybe someone here might have a clue on this. I'm at a loss- support hasn't been able to help. The question is here

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=470464&SiteID=1

but specifically

>c:\s.t>cl /MD /GS- x.c
>Microsoft (R) C/C++ Optimizing Compiler Version 14.00.40310.41 for AMD64
>Copyright (C) Microsoft Corporation. All rights reserved.
>
> x.c
> Microsoft (R) Incremental Linker Version 8.00.40310.39
> Copyright (C) Microsoft Corporation. All rights reserved.
>
> /out:x.exe
> x.obj
>
> T:\second.try>x
> 3000000000 0
>
> c:\second.try>type x.c
> // cl /MD /GS-
> #include
> main(){__int64 n=3000000000;
> printf("%I64d %i\n",n,malloc(n));}

works fine on linux. This is obviously Windows x64, on 64 bit chip.

Thanks for all you help.

J Loveless

 


[reply]   

06/27/06 10:52 AM EST
posted by adam

Well that's easy. Just get the source code for the 64-bit Windows kernel and step through the malloc in the debugger...

 

Name

 registered? log in!

E-mail (optional)

Website (optional)

  

To ensure security, this site requires unregistered users to enter a verification code:
 
Your code is:  
Enter Code:   

Note: Only registered ShinyDonkey.com users can post images. Only administrators can delete images.

  



"And remember, a shiny new donkey for whoever brings me the head of Colonel Montoya..."
e-mail webmaster