search for: virtualalloc

Displaying 20 results from an estimated 35 matches for "virtualalloc".

2006 Sep 20
1
kernel32.VirtualAlloc() limitation? - "Insufficient memory to perform operation"
Hello, capserve.exe is part of Adobe Acrobat 5's PaperCapture plugin. Runnning "wine capserve.exe" I get an error saying "Insufficient memory to perform operation" (although all runs fine under Windows). It seems that several calls to kernel32.VirtualAlloc(), ntdll.NtAllocateVirtualMemory() and related functions are executed right before the error message is issued. See the log-output below, with WINEDEBUG=+all. Could there be a problem with allocating virtual memory in Wine? Maybe the issue discussed under http://www.winehq.com/hypermail/wine-de...
2006 Oct 23
0
Need some help with MMap# and MMap#=
...hat Guy''s version of mmap (for Unix) contains some string-like methods that let you access pieces of the view like a string. Patrick and I came up with this (which requires the latest windows-pr in cvs so that we can use a more flexible version of memcpy, as well as some constants for VirtualAlloc): def [](offset, length) buf = 0.chr * length memcpy(buf, @address + offset, length) buf end def []=(offset, length, string) memcpy(@address + offset, string, string.length) end This works as is but Ara also mentioned that some methods, such as MMap#[]=, will autoexpand the al...
2007 Oct 09
5
Playing with ReadFileScatter()
Hi all, Looking at the IO.readlines source in io.c, it looks to me like they grab 8k chunks, split on the input record separator, and buffer accordingly. Since it looks like ReadFileScatter() does some of that work automatically (in page file sized chunks), I thought I''d give it a try. Here''s what I''ve got, but it doesn''t work. I have an incorrect parameter
2004 Sep 16
1
[LLVMdev] Patch to lib/System/Interix
...e equivalent of a MAP_ANON >allocation on Interix. We don't want to map a file here. We're just asking >for virtual memory (unbacked by swap or file) to be allocated to the >process. Is there a way to do that on Interix? The corresponding way to do >that in Win32 is with the VirtualAlloc function. Perhaps we need to use >that directly? Is it available? Am I asking enough questions? :) > U grill me with all those questions :) No, we cannot use VirtualAlloc function directly. Since you're only interested in allocating memory in page sizes For convienience I provide you...
2001 May 16
1
wine-20010510 fails to run?
...0 ret=0046deac 08067f18:Call kernel32.GetVersion() ret=0046dec1 08067f18:Ret kernel32.GetVersion() retval=c0000004 ret=0046dec1 08067f18:Call kernel32.GlobalMemoryStatus(405b6e4c) ret=0046d3a8 08067f18:Ret kernel32.GlobalMemoryStatus() retval=7ffdffff ret=0046d3a8 08067f18:Call kernel32.VirtualAlloc(00000000,00400000,00002000,00000001) ret=0046d915 08067f18:Ret kernel32.VirtualAlloc() retval=40c60000 ret=0046d915 ..... lots of duplicate messages removed ..... 08067f18:Call kernel32.VirtualAlloc(40c6f000,00001000,00001000,00000004) ret=0046d954 08067f18:Ret kernel32.VirtualAlloc() re...
2004 Nov 21
3
win32-file, overlapped added
...hing left before I want to release this (as 0.4.0) is to get NO_BUFFERING to work. Unfortunately, I can''t get it to work. Park, I looked at that site you sent (and borrowed some code from it), but I don''t see anything special happening for NO_BUFFERING. I thought it required VirtualAlloc() but I''m not sure. If anyone has any ideas on that, please let me know. Thanks. Regards, Dan
2006 Jun 23
7
malloc small pieces of memory
Hi I have a Problem with wine. I have one Program, that allogaces many small pieces with "malloc()" in the memory. "many" means over 2 Mio, "small" means "from 8 to 128 bytes" in size. Running this Program on Windows gives me ~300MB Memory Usage (according to one of the values in the Tast manager). In Linux, "top" shows me a physical Usage of
2020 Jul 03
4
[cfe-dev] RFC: Replacing the default CRT allocator on Windows
Thanks for the suggestion James, it reduces the commit by about ~900 MB (14,9 GB -> 14 GB). Unfortunately it does not solve the performance problem. The heap is global to the application and thread-safe, so every malloc/free locks it, which evidently doesn’t scale. We could manually create thread-local heaps, but I didn’t want to go there. Ultimately allocated blocks need to share ownership
2013 Jun 28
0
Wine release 1.6-rc4
...zilian Portuguese translation. po: Update Brazilian Portuguese translation. Caibin Chen (1): po: Update Simplified Chinese Translation. Christian Costa (1): d3dxof: Add support for case sensitive legacy type indexColor. Dmitry Timoshkov (4): kernel32/tests: Add a test for VirtualAlloc called on a mapped PE section. kernel32/tests: Add more VirtualAlloc and VirtualProtect tests. kernel32: Correct HeapFree .spec parameter type. ntdll: Correct RtlFreeHeap .spec parameter type. Erich Hoover (1): ws2_32: Fix interface-bound filter to accept locally generated...
2019 Jan 28
3
[llvm-pdbutil] : merge not working properly
...along with a jitted_code_main.obj which you compiled from a simple > source file with a DllMain function that does nothing. This would make > jitted_code.dll, then have your program link against jitted_code.lib. > > Right now you jit the code into some buffer that you created with > VirtualAlloc. If you do the above, it will load jitted_code.dll into > memory and the OS loader will allocate some memory for each section. So > this would be like your VirtualAlloc, you can just find the address of the > .jit section and use that buffer instead of the VirtualAlloc buffer as the >...
2019 Jan 23
2
[llvm-pdbutil] : merge not working properly
...Are there any streams that say (???)? > If so, that's a problem. > > > does visual studio will consider a symbol file broken if the address > goes beyond the official module address range (the compiled one), because > my JIT code is allocated after the end of the module with VirtualAlloc > That is a good question, and part of why my job is so difficult, because I > can't look at their code. But I think the answer is "probably". The > debugger has to have some way to convert an address in your running process > into a symbol and offset, because that's...
2007 Mar 19
0
Kernel 2.6 problem
...d running a +relay,+seh,+tid trace (which was 253M big) and there were several trace:seh lines, the first being code c0000005 (access violation) after a call of user32.SetDeskWallPaper but it seems that was handled, and later there was a code c000013a after a load of calls to ReadFile() and then to VirtualAlloc(). It seems NtAllocateVirtualMemory is returning an error. The last file it opened was Program Files/Bider/Speech Plus/Resource/Standard/SMExtern.rul which is less than 1M so I don't see what's up with that. Why should NtAllocateVirtualMemory fail on kernel 2.6 but not 2.4? I'm using...
2004 Sep 16
1
[LLVMdev] Patch to lib/System/Interix
Hi Interix does not know MAP_ANON or -NOCORE only MAP_SHARED, -PRIVATE and -FIXED. Henrik _________________________________________________________________ F� alle de nye og sjove ikoner med MSN Messenger http://messenger.msn.dk/ -------------- next part -------------- A non-text attachment was scrubbed... Name: Memory.cpp.zip Type: application/x-zip-compressed Size: 495 bytes Desc: not
2005 Oct 12
1
[ World of Warcraft ] The 1.8 Patch brings the target ( or targeting ) problem back
Hi, It seems that the new 1.8 patch brings and old problem back. The problem is : It's impossible to target any world object without some "tricks" [1] not always usable. This problem occured the first time with the 1.5 patch. A lot of workarounds were given on the forum and, finally, the 2.6.12 kernel fixed the problem for a lot of people (like me). Now the problem comes back but
2006 May 11
9
world of warcraft doesnÄt work (sorry if double post)
if this is a doublepost please sorry bur the first post was blocked by spamfilter because of wrong timesettings on my local computer. i reaplyed to my original post and now im not shure if the mailserver thinks the message is corrupt because of reply to a non existing message. here is the originalmessage (again?) Hi everyone, thirst of all please forgive my bad english :) i have installed wine
2006 Jun 14
6
memory limit?
I've got a simple (32bit) windows application (compiled in Borland c++ builder): int *p; while(1) { p = new int[10000000]; //allocates 40 MB of memory } on Windows XP it crashes after 50 iterations (i.e. 2 GB allocated) but on wine it crashes after 30 iterations (1200 MB allocated) is it impossible to use 2gb of memory in wine? why only 1.2GB is available? I've got wine 0.9.13,
2004 Sep 11
2
[LLVMdev] lib/System Changes
...ent additions .. (1) Allocating RWX memory is used by the JIT Emitter for code generation and execution. The JIT software is now platform independent in this regard by using the new sys::Memory::AllocateRWX function. This function has been implemented to use variants of mmap on Unix platforms and VirtualAlloc on Win32. (2) The functions in "FileUtilities.h" for checking magic numbers and determining the type of a function have been added to the Path class. There are three new methods: has_magic_number, is_bytecode_file, and is_archive. These have been implemented as "generic Unix"...
2007 Oct 24
0
[LLVMdev] me being stupid: me vs the llvm codebase...
>> LLVM handles function pointers currently. It just overwrites the >> first >> instruction of the old code with an unconditional branch to the new >> implementation. Thus, any code branching to the old location will >> still >> work. > > yes, that works so long as one has write access to the text section > (or the > code is otherwise in a
2008 Feb 05
2
[LLVMdev] Advice on implementing fast per-thread data
...er per-thread information) on a global page all by themselves, and remap that virtual page for every thread. Then I could simply dereference the globals. On Unix I think I can do this playing games with mmap(), but I'm not sure how to do this on Windows. I played around a little with the VirtualAlloc function, but it doesn't look like it does what I need. Almost as good would be to add a level of indirection, have a global pointer to where the page is to be mapped, and just map it in the same place in every thread. Another possibility, and I'm not sure how to do this in LLVM, would...
2008 Mar 19
13
Running an .NET 1.1 Program
Hello, im trying to run an .NET 1.1 Program. .NET V1.1 Installation works fine, but when i want to start the Program i get some errors and Program exits Code: fixme:virtual:NtAllocateVirtualMemory MEM_WRITE_WATCH type not supported fixme:virtual:NtAllocateVirtualMemory MEM_WRITE_WATCH type not supported fixme:shell:URL_ParseUrl failed to parse L"mscorlib" Application tried to create