|
-
Jul 1st, 2006, 04:36 AM
#1
Thread Starter
Frenzied Member
[RESOLVED] Very Weird Compile vs Debugger Problem..!!
Hello guys..
This is the 1st time something like this has happened to me, but having made my own custom activex control works and behaves fine when its run from VB, but when i compile it things get messy !!!
A position problemming..!!!
What could cause this..?
_____________________________________________________________________
----If this post has helped you. Please take time to Rate it.
----If you've solved your problem, then please mark it as RESOLVED from Thread Tools.

-
Jul 1st, 2006, 05:01 PM
#2
Re: Very Weird Compile vs Debugger Problem..!!
-
Jul 1st, 2006, 05:12 PM
#3
Thread Starter
Frenzied Member
Re: Very Weird Compile vs Debugger Problem..!!
well basically.. when ran through VB the activex control i did was functioning fine.. no error at all...
but when i did a test compile to .exe
it seems like it was picking any positioning codes: for eg. if a shape had to be in a certain position, it wasnt,, the size was off.. etc... it was reading its properties.. dont know but it only happened when compiled to .exe!
and having spent the whole day nearly trying to fix. it.. and i managed to sort it out..by adding extra properties n stuff.. to manage a few things...
but still weird.. why did vb debugger show stuff fine but compiled not..!!
_____________________________________________________________________
----If this post has helped you. Please take time to Rate it.
----If you've solved your problem, then please mark it as RESOLVED from Thread Tools.

-
Jul 1st, 2006, 06:08 PM
#4
Re: [RESOLVED] Very Weird Compile vs Debugger Problem..!!
Compiled machine code isn't the same as the code used in IDE. Under IDE you use interpreted p-code (to what you can also compile your program to), but it is slow. Compiled programs are native code and much faster. There are some cases when compiled is different from IDE: other one may have a bug or there might be slight differences in how memory is organized. Or there can be less error checking in compiled program, which may cause different behaviour in the compiled program.
One reason why being careful with the proper datatypes and checking for valid value ranges is important.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|