h40534
Aug 3 2005, 05:48 PM
Hey all people i have a litle(not really) problem with compiling a bot. basically i am trying to learn programming bots and i usually change somethings in the source and see the result . but i am having a strange problem in compiling rxbot . when i compile it in win32 debug config it works fine but the problem starts when i do in the win32 release version . the bot compiles file but it dosent join the channel or even connect to the server. where am i going wrong? maybe some of u people would help me.
i hope that i am not breaking any rules by asking this
vnet576
Aug 3 2005, 06:45 PM
When testing any kind of program I put in my own "debug" features. For example once something happens I have the program printf() step.... completed. If there is an error I have the printf call GetLastError() and then I google for the corresponding error code to see why the particular function failed. I remove them when I'm done testing but it allows me to find exactly where the program goes wrong.
This is the only advice I can give you since with the (limited) information you provided, the problem could be almost anything.
Killaloop
Aug 3 2005, 08:39 PM
yep vnet is right, I also do this way if my code doesn't do what it was supposed to do.
just wanted to add a possible solution to your problem:
check your linker settings, look at the debug settings and take care that you link to the same libs in release mode.
normally if something is wrong with your libs your code won't link, but there are many libs that share the same functions, but work different.
in the end your code would compile and link, but some functions would not do what they are supposed to do.
I have had this happening when I linked to different libs with string functions and it took me quite some time to find the reason for it.
anyhow if you need more help let the term "rxbot" out of your question please.