PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

eVC Bug

Here's a nice bug I found with eVC and DevStudio:

- Launch eVC
- Make sure that "Auto parameter info" is enabled via Tools\Options\Editor dialog (it is by default).
- Create a new Win32 Application project (select 'Empty Project')
- Add a new source file (foo.cpp) to the project
- Open this new source file in the IDE editor
- Type the following in the source file, leaving the cursor to the right of the '(':
#include <windows.h>

INT WINAPI WinMain (
- At this point you should see the tooltip box displayed listing the function prototype for WinMain.
- Using the cursor arrow keys, move the cursor back 9 characters to just before the 'W' in "WinMain".  Now press ENTER to drop the substring "WinMain (" to the next line.

- Now press the END key to move the cursor to the end of the line.
- BAM! No more eVC.

It has something to do with that Tooltip that displays the parameters to WinMain.  If you disable that feature in the editor this won't happen.  Happens in Win2K and WinXP, although XP actually traps and then allows you to send the mini-dump to MS.


It will also crash when debugging if you try to step into a system function that it can't find the source for. I don't know how many times I've done that accidentally by hitting F11 instead of F10.

Dan East
Interesting. If you two weren't such avid programmers, I would say you had too much time on your hands.
Well, within a couple hours of posting that, I accidentally hit F11 during a debug session. :( So then I had to restart eVC, load my project, soft reset my iPaq (because that locks it up completely), begin debugging, and work my way back into were I was when I hit the wrong key.

Dan East