support

Forum Replies Created

Viewing 15 posts - 7,651 through 7,665 (of 7,695 total)
  • Author
    Posts
  • in reply to: unable to successfully mount a cue file #1125
    support
    Keymaster

    Looks like your CUE file contains audio tracks. Presently, WinCDEmu does not support multi-track CDs. However, this feature will probably be added in future versions.

    in reply to: regarding debugging virtualbox #1144
    support
    Keymaster

    Obviously, you need a WinDbg (http://www.microsoft.com/whdc/devtools/debugging/) to do that. I recommend reading some tutorials about ‘kernel debugging for beginners’ before starting. Note that VirtualKD is not itself a kernel debugger. Instead, it is a tool, that speeds up interaction between a virtual machine and WinDbg.

    in reply to: First start after Installation (Win2k8 Server / Win 7) #1048
    support
    Keymaster

    It does not prompt at every mount, as soon as you select “manage drive letters automatically”.

    in reply to: Win xp error code 10 #1119
    support
    Keymaster

    Ok, if you mount an image, ensure that an “error code 10” appears in Device Manager, open command prompt and type “net start BazisVirtualCD”, which error message will you get?

    support
    Keymaster

    Well, if you are already debugging your machine with WinDbg, how can VisualDDK attach to it? The pipe is obviously occupied by WinDbg instance. However, if you close the WinDbg (and uncheck ‘automatically start the debugger’ in VMMON, or just close VMMON, as it is no needed for VisualDDK), debugging from VisualDDK should work.

    support
    Keymaster

    Bridging is required for automatic driver binary updating, however, is not mandatory for debugging with VisualDDK. If WinDbg/VirtualKD works, and VisualStudio with VisualDDK fails, you can try using Debug->Attach command, selecting “Kernel-mode connections” and picking your OS manually. You will get either a working debug session, or a more detailed error message.

    in reply to: BazisLib 2.3.0 Setup Error [FIXED] #1141
    support
    Keymaster

    Sure, however, with relatively small DriverEntry this will not give any noticeable effect. On the other hand, moving some initialization functions to .init section may cause failures, in case such functions are accidentally called after initialization. So, IMHO, freeing up to 10K of RAM (typically less than 1K) on a 1-4GB machine at a cost of making the code potentially unstable (if later one forgets that a certain function is in .init) is not very reasonable. However, this is just my IMHO.

    in reply to: BazisLib 2.3.0 Setup Error [FIXED] #1142
    support
    Keymaster

    So, if i understand correctly, i can use new/delete/npagednew in KM C++ if i include stlsup.cpp?

    Yes. Otherwise you will simply get a linker error stating that “operator new()” is undefined.

    Just try DDKWizard, why you not use RTL_CONSTANT_STRING to define DeviceName and Win32Device instead of RtlInitUnicodeString?

    Sample files for DDKWizard were copy-pasted from some very old stuff without any refactorring. Anyway, thanks for the advice, I’ll probably update the samples.

    in reply to: BazisLib 2.3.0 Setup Error [FIXED] #1138
    support
    Keymaster

    It is managed by BazisLib. You can see the stlsup.cpp file for new() and delete() implementation. However, note that if you need to allocate objects from non-paged pool, you should use the npagednew() function instead (or, more preferably, overload the new() operator for your specific class, that always needs to be allocated from non-paged pool; for example, see the irpqueue.h file). The standard C malloc()/free() implementations are provided as well for compatibility reasons.

    in reply to: BazisLib 2.3.0 Setup Error [FIXED] #1135
    support
    Keymaster

    You need a special “runtime” libraries to use exceptions. For other purposes (static/global constructors & etc.), the BazisLib startup file is enough.

    in reply to: BazisLib 2.3.0 Setup Error [FIXED] #1133
    support
    Keymaster

    Surely you can use the STLPort without BazisLib, however you will need the code that calls static C++ constructors/destructors, that can be easily separated from BazisLib.
    As for the compiler flags & etc, I would recommend avoiding exceptions in kernel mode, as using them has quite an impact on performance and stack requirement. Check out the VisualDDK project wizard, it allows creating Visual Studio driver projects without a link to BazisLib.
    Finally, regarding object creation & programming style, I could only suggest being sure, what will the optimizing compiler produce from your C++ code, and checking the disassembly in case of a smallest doubt. Anyway, it is possible to make C++ programs as efficient/small as C ones with much less coding effort, however it requires checking the disassembly, as the optimizer is not always perfect.
    See WinCDEmu sources for a (relatively) simple example of a C++ kernel driver.

    support
    Keymaster

    Does the VirtualKD with WinDbg work on your machine? If not, what does the VM monitor show?

    in reply to: BazisLib 2.3.0 Setup Error [FIXED] #1131
    support
    Keymaster

    😮 ??? If something about kernel-mode part of BazisLib is bad, a bugreport/wishlist would be much better than undirected sarcasm.

    in reply to: BazisLib 2.3.0 Setup Error [FIXED] #1129
    support
    Keymaster

    Oops. Saw the post too late. Already fixed, will be included in next version installer. As for the quotation marks & unicode symbols, maybe will do it later, however, I’m not that good in PHP, as in kernel development 😉

    in reply to: Win xp error code 10 #1117
    support
    Keymaster

    What’s your version of Windows?

Viewing 15 posts - 7,651 through 7,665 (of 7,695 total)