search for: heapalloc

Displaying 20 results from an estimated 78 matches for "heapalloc".

2008 Apr 22
1
HeapAlloc vs. malloc. How does HeapAlloc work?
Hi, I am little bit interested in Wine source code. There is one thing I don't understand. How does HeapAlloc() work? Is it the same behavior as Winapi HeapAlloc()? If so then I have to check NULL value after each calling of this function, don't I? I have found this code in Wine 0.9.57: In dlls/dbghelp/stabs.c function 'static int stabs_new_include(const char* file, unsigned long val)' line 1...
2001 Nov 19
3
WineLib Seg Fault?
...use winemaker to create a WineLib 'so' file and the compile and link again runs clean. But when I run the resulting 'so' file using this command line: $ WINEPRELOAD=./x_zeus.so wine --debugmsg +all I get the following trace file and resulting segment fault: 0806d080:trace:heap:HeapAlloc (40360000,00000002,00000808): returning 4036074c 0806d080:trace:heap:HeapSize (40360000,00000002,4036009c): returning 00000680 0806d080:trace:heap:HeapReAlloc (40360000,00000002,4036009c,0000069c): returning 40360f60 0806d080:trace:heap:HeapAlloc (40360000,00000002,00000018): returning 4036009c 080...
2018 Feb 16
0
Wine release 3.2
...writing out of bounds in get_selector_entry(). Michael Müller (3): shell32: Use manual redirection for RunDLL_CallEntry16. include: Add run level information enum and structure to winnt.h. imm32: Add stub for ImmDisableLegacyIME. Michael Stefaniuc (32): pdh: Use the global HeapAlloc() wrappers. qcap: Use the global HeapAlloc() wrappers. sapi: Use the global HeapAlloc() wrappers. schedsvc: Use the global HeapAlloc() wrappers. scrrun: Use the global HeapAlloc() wrappers. oledb32: Use the global HeapAlloc() wrappers. taskschd: Use the global He...
2018 Feb 02
0
Wine release 3.1
...evices and event handling. krnl386: Remove support for VGA emulation. winedbg: Remove support for vm86 exceptions. kernel32: Remove support for vm86 exceptions. comdlg32: Correctly initialize the item dialog structure. Alistair Leslie-Hughes (3): dpnet: Use the global HeapAlloc() wrappers. advapi32: Support WinLogonIdsSid in IsWellKnownSid. d3dx9: Stub D3DXCreateKeyframedAnimationSet(). Andrew Eikum (3): xinput: XInputGetStateEx takes the same struct as XInputGetState. services: Add support for service status change notifications. advapi32:...
2001 Mar 23
1
-debugmsg trace+all gives assertion error
...log: trace:profile:PROFILE_GetWineIniString ('wine','temp','c:\windows'): returning 'C:\temp' trace:dosfs:DOSFS_GetFullName C:\temp (last=1) trace:string:lstrcpynA (0xbfffeb28, "/home/bme/C", 1024) trace:dosfs:DOSFS_FindUnixName /home/bme/C,temp trace:heap:HeapAlloc (40380000,00000002,0000022c): returning 4038036c trace:heap:HeapAlloc (40380000,00000002,00000018): returning 403805a4 trace:dosfs:DOSFS_FindUnixName (/home/bme/C,temp) -> temp (TEMP) trace:heap:HeapFree (40380000,00000002,403805a4): returning TRUE trace:heap:HeapFree (40380000,00000002,4038036c...
2001 Dec 06
2
Problem report: SHRINKER.ERR, fix to DEVICE_Open/CreateFileA?
...:file:CreateFileA C:\WINDOWS\000cf6e.tmp GENERIC_WRITE CREATE_NEW 0806d388:trace:dosfs:DOSFS_GetFullName C:\WINDOWS\000cf6e.tmp (last=0) 0806d388:trace:string:lstrcpynA (0x406119ec, "/mnt/dos", 1024) 0806d388:trace:dosfs:DOSFS_FindUnixName /mnt/dos,WINDOWS\000cf6e.tmp 0806d388:trace:heap:HeapAlloc (403b0000,00000002,0000022c): returning 4042ef68 0806d388:trace:dosfs:DOSFS_FindUnixName (/mnt/dos,WINDOWS\000cf6e.tmp) -> windows (WINDOWS) 0806d388:trace:heap:HeapFree (403b0000,00000002,4042ef68): returning TRUE 0806d388:trace:dosfs:DOSFS_FindUnixName /mnt/dos/windows,000cf6e.tmp 0806d388:t...
2001 Jun 26
1
intermittent segfault upon invocation
...this, so I think the OS itself is stable. 4. When it doesn't segfault on startup, it works great! Any ideas? If we weren't trying to run batch jobs, I wouldn't care, but we need it to run safely when unattended. Thanks, Ken When it works: % wine --debugmsg +all 08066ec0:trace:heap:HeapAlloc (40360000,00000002,00000808): returning 40360608 08066ec0:trace:heap:HeapSize (40360000,00000002,4036009c): returning 0000053c 08066ec0:trace:heap:HeapReAlloc (40360000,00000002,4036009c,00000558): returning 40360e1c 08066ec0:trace:heap:HeapAlloc (40360000,00000002,00000018): returning 4036009c 080...
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
2012 Jul 27
3
[LLVMdev] Roundtrip clang -> llc -> clang fails
Hi! I am not sure if this is a bug or not. I have the following non-sense C module exc_alloc.c: #include <windows.h> void *AllocMem() { HANDLE heap = GetProcessHeap(); void *p = HeapAlloc(heap, HEAP_GENERATE_EXCEPTIONS | HEAP_ZERO_MEMORY, 16*1024*1014*1024); return p; } If I execute the following commands clang -S -emit-llvm -o exc_alloc.ll exc_alloc.c llc -filetype=asm exc_alloc.ll clang -c exc_alloc.s then I get the error messages exc_alloc.s:11:31: error: invalid varian...
2013 Feb 15
0
Wine release 1.5.24
...enum type WICTiffCompressionOption. Marcus Meissner (1): comdlg32: Free files on errorpath (Coverity). Michael Stefaniuc (20): ddraw/tests: Use assignment instead of memcpy to copy structs. crypt32: Use assignment instead of memcpy to copy structs. wined3d: Remove ERR() on HeapAlloc failure for small sizes known at compile time. ieframe: Let C look like C. krnl386.exe16: Let C look like C. gphoto2.ds: Let C look like C. iphlpapi: Let C look like C. qedit: Let C look like C. d3drm: Let C look like C. riched20: Let C look like C. u...
2001 Mar 13
3
problems running homesite
Hi there, I have just installed wine (release 20010305) and it looks to work good. I can run notepad without trouble, winecheck.pl has one bad and one critical result: 023. Checking device needed for DGA (option "UseDGA"): /dev/BAD (/dev/mem is not writable for you). - ADVICE: Use chmod as root to fix it ("man chmod"). 025. Checking availability of windows registry
2007 Dec 14
0
Wine release 0.9.51
...GT could not be detected. wine.man: Added small clarification for AppDB. loader: Added de_DE.UTF-8 translated Wine man page. Marcus Meissner (1): server: Removed superflous async->queue NULL tests. Michael Stefaniuc (20): secur32: Remove the SECUR32_ALLOC() macro around HeapAlloc(). kernel32: Pass HEAP_ZERO_MEMORY to HeapAlloc() instead of clearing the memory with a separate memset() call. mshtml: Rename the wrappers around HeapAlloc() &Co to use the new standard naming. winecfg: Pass HEAP_ZERO_MEMORY to HeapAlloc() instead of clearing the memory with...
2001 Aug 05
4
Abiword as test of Wine
One problem with Wine has been that there were few serious open source win32 applications out there to test Wine with (ok, maybe my opinions are from 1997 :-) In any case, we have some great open source Win32 applications to test with. AbiWord is one. I just tried installing AbiWord 0.9 under the latest Codeweavers preview. The install worked -- but generated about a billion warnings of the
2010 Jul 07
3
Message: "err:psdrv:PSDRV_PPDGetNextTuple Line too long."
...} else { 00391 while(isspace(*cp)) 00392 cp++; 00393 if(*cp == ':') { /* <key> : */ 00394 gotoption = FALSE; 00395 } else { /* <key> <option> */ 00396 opt = cp; 00397 } 00398 } 00399 00400 tuple->key = HeapAlloc( PSDRV_Heap, 0, endkey - line + 1 ); 00401 if(!tuple->key) return FALSE; 00402 00403 memcpy(tuple->key, line, endkey - line); 00404 tuple->key[endkey - line] = '\0'; 00405 00406 if(gotoption) { /* opt points to 1st non-space character of the option */ 00407...
2016 May 23
2
A "Cross-Platform Runtime Library API" in LLVM IR
So, the backend should implement "__alloc" that does the same as "malloc" - or something subtly different from "malloc" - and on a Windows machine, how is it different from "HeapAlloc"? And "__write" that is same as UNIX "write", but different from "WriteFile" in Windows? And HOW do you expect the backend to implement these? By calling "malloc"/"HeapAlloc", "write"/"WriteFile"? This is what the C library...
2012 Jul 28
0
[LLVMdev] Roundtrip clang -> llc -> clang fails
...2 at 3:36 PM, Kai <kai at redstar.de> wrote: > Hi! > > I am not sure if this is a bug or not. > > I have the following non-sense C module exc_alloc.c: > > #include <windows.h> > > void *AllocMem() { > HANDLE heap = GetProcessHeap(); > void *p = HeapAlloc(heap, HEAP_GENERATE_EXCEPTIONS | > HEAP_ZERO_MEMORY, 16*1024*1014*1024); > return p; > } > > If I execute the following commands > > clang -S -emit-llvm -o exc_alloc.ll exc_alloc.c > llc -filetype=asm exc_alloc.ll > clang -c exc_alloc.s > > then I get the error...
2001 Mar 27
1
United Devices Client
...installing itself and a bunch of dll's into the windows\system directory. The client however, pops up a message box on startup claiming "Invalid picture". Which debugmsg options would be helpful in finding the problem? Most of the 200 lines before this with +relay are TlsGetValue, HeapAlloc, HeapFree, RtlEnterCriticalSection, and RtlLeaveCriticalSection. Nothing that looks particularly interesting.. Ian
2008 Apr 30
1
How do I test janitorial task ReplaceMalloc for console.c?
How do I test janitorial task ReplaceMalloc for console.c? I finished replacing the Malloc() functions with HeapAlloc() functions and the corresponding Free() functions with HeapFree() functions, but how do I test if it works? Here is my modified console.c code from wine version 0.9.60 http://www.pastebin.com/f5307c42f
2010 Nov 14
0
freebsd oss sound dsp scheme
...WInDev[0].ossdev.dev_name = StrDup("/dev/dsp0.0",NULL); WOutDev[0].ossdev.mixer_name = WInDev[0].ossdev.mixer_name = StrDup("/dev/mixer",NULL); for (i = 1; i < MAX_WAVEDRV; ++i) { WOutDev[i].ossdev.dev_name = WInDev[i].ossdev.dev_name = HeapAlloc(GetProcessHeap(),0,11); - sprintf(WOutDev[i].ossdev.dev_name, "/dev/dsp%u", i); + sprintf(WOutDev[i].ossdev.dev_name, "/dev/dsp0.%u", i); WOutDev[i].ossdev.mixer_name = WInDev[i].ossdev.mixer_name = HeapAlloc(GetProcessHeap(),0,13);...
2001 Dec 08
1
LoadOEMResource crash [Was: Re: Problem report: SHRINKER.ERR, fix to DEVICE_Open/CreateFileA? ]
Hi Pavel, Right, my app also crashes in a different place under winedbg, although it crashes in the same winedbg place under gdb. I took a closer look at wine --winver nt40 --debugmsg +all. I found something interesting. If I search for queue_exception, I find that there is an exception raised before the LoadOEMCall, about 328klines in: 0806d398:Call