| |||||||
| Programming and Assembly Language Please read this Topic's rules!! |
![]() |
| | LinkBack | Thread Tools | Rate Thread |
| ||||
| Are you using the debug build of the dll, or the release build? You can sometimes have issues if you try to debug a VB application when you are using debug versions of the dlls you are calling as well (there are changes in how the stack gets allocated).
__________________ Avatar and sig graphic by Pitch. Subscribers! Ask about a custom graphic or avatar today! Gizmo Thermal Diode Mod and Direct-Die Water Block 8-Cheetah 18GiB U-2 SCSI MegaRAID Enterprise 1500/128MiB Samsung SyncMaster 955DF TTGI/Superflower TTS-520 PSU ![]() ![]() ![]() |
| ||||
| I have been using the debug version of the DLL but changing to the release version does not stop an error occurring. However, the error is no longer a CTD event, but a vb 'Overflow' error of a loop counter which can only be the result of the DLL function repeatedly returning 0 at the wrong time. But this obvioulsy doesn't happen running the vb from an exe, otherwise that would crash as well. It doesn't matter all that much, unless there is some underlying problem with the cpp, as I have finished adding password functionality and I'm ready to start adding some more useful methods.
__________________ |
| ||||
| I'm guessing since you wrote the DLL that you probably have the Visual Studio C++ IDE as well. If you will build the debug version of the DLL and put it into the Path so that the VB application opens it when run, you can then tell VS to launch the debugger on the DLL code as soon as the DLL is loaded. For VS 2K5, you just need to configure VS to launch the VB application in your debugger session. If you open the DLL project properties, in the left pane of the Property Pages dialog that pops up you will see 'Configuration Options' and under than an item labeled 'Debugging'. Click on that, and the right pane will then contain your debugging options. Set the 'Command' parameter to be the full path + name of the VB app that you want to run which will load this DLL. If it requires any command-line arguments, provide those in the 'Command Arguments' parameter. If it needs to be launched from a particular working directory in order to load any supporting files, then set the 'Working Directory' parameter as appropriate. Once that is done, you can launch the debugger for the DLL. It will load your VB app, which you can then use like normal, except that now any calls from the VB app into the DLL will be run under your debugger, so that you can see what is happening.
__________________ Avatar and sig graphic by Pitch. Subscribers! Ask about a custom graphic or avatar today! Gizmo Thermal Diode Mod and Direct-Die Water Block 8-Cheetah 18GiB U-2 SCSI MegaRAID Enterprise 1500/128MiB Samsung SyncMaster 955DF TTGI/Superflower TTS-520 PSU ![]() ![]() ![]() |
| ||||
| Thanks, I had already tried this, but the problem is, the vb works fine when debugging the dll. The only time the error occurs is when the vb is in debug, which means I can't see what is happenning in the dll, unless there is a way to open the vb IDE and make it run the app using the cpp debug settings. But, like I said don't trouble yourself too much about it.
__________________ |
| ||||
| Ouch. That bites.
__________________ Avatar and sig graphic by Pitch. Subscribers! Ask about a custom graphic or avatar today! Gizmo Thermal Diode Mod and Direct-Die Water Block 8-Cheetah 18GiB U-2 SCSI MegaRAID Enterprise 1500/128MiB Samsung SyncMaster 955DF TTGI/Superflower TTS-520 PSU ![]() ![]() ![]() |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Rate This Thread | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to beat the sleep barrier, without 'extreme' methods. | skool h8r | Random Nonsense! | 50 | 2nd May, 2006 03:54 PM |
| Have you burned an A64? Methods for testing the IMC.. | MrSeanKon | 64 Bit computing | 1 | 23rd January, 2006 05:19 AM |
| What methods do you all use for CPU Burn-in? | DragonFlight | AMD Motherboards & CPUs | 11 | 27th June, 2003 03:02 AM |
| Folding 2 connection methods! | dimmreaper | Samuknow's AOA FOLDING@HOME Team | 5 | 19th October, 2001 02:42 AM |