All work in Debug Mode but no In Compile Mode

Just starting out? Need help? Post your questions and find answers here.
soupetomate
New User
New User
Posts: 7
Joined: Wed Feb 04, 2015 8:47 pm

All work in Debug Mode but no In Compile Mode

Post by soupetomate »

Hi i have write a snippet who work perfect in Debug Mode.
Is about to read a file though

While Eof, then using readstring to store value in a String$ and send it though Request.
He work perfect in Debug Mode, but when i compile it and run the .EXE he don't work anymore.

What is the fuck?
Unicode & ThreadSafe are enable... i have no idea why this don't work only then i compile it.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8453
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: All work in Debug Mode but no In Compile Mode

Post by netmaestro »

The only difference would be the location of the running exe. Make sure the file you're reading is still available to the program at the location you chose for the compiled .exe, if that's not it then I don't know what is the fuck.
BERESHEIT
soupetomate
New User
New User
Posts: 7
Joined: Wed Feb 04, 2015 8:47 pm

Re: All work in Debug Mode but no In Compile Mode

Post by soupetomate »

Yeah is totally mindfuck :|
infratec
Always Here
Always Here
Posts: 7836
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: All work in Debug Mode but no In Compile Mode

Post by infratec »

I have also a problem:

How to .... should I know what you have coded :?:

So I'm not able to help you.

Easiest thing: You have somewhere Debug in front of a code line which is needed.

Bernd
User avatar
oreopa
Enthusiast
Enthusiast
Posts: 284
Joined: Sat Jun 24, 2006 3:29 am
Location: Edinburgh, Scotland.

Re: All work in Debug Mode but no In Compile Mode

Post by oreopa »

infratec wrote:...Easiest thing: You have somewhere Debug in front of a code line which is needed.
Hi. Just out of interest, you mean:

Code: Select all

Debug "HI!" : a = #VERYIMPORTANTVALUE
?

I didn't realise the compiler did that. Not that I'd probably code like that anyway, but good to know.
Proud supporter of PB! * Musician * C64/6502 Freak
infratec
Always Here
Always Here
Posts: 7836
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: All work in Debug Mode but no In Compile Mode

Post by infratec »

Hi oreopa,

no, that works. (Just tested :mrgreen: )

I mean something like

Code: Select all

Debug ReadData()
User avatar
oreopa
Enthusiast
Enthusiast
Posts: 284
Joined: Sat Jun 24, 2006 3:29 am
Location: Edinburgh, Scotland.

Re: All work in Debug Mode but no In Compile Mode

Post by oreopa »

Aha, thx :D I misunderstood :)
Proud supporter of PB! * Musician * C64/6502 Freak
User avatar
Blue
Addict
Addict
Posts: 973
Joined: Fri Oct 06, 2006 4:41 am
Location: Canada

Re: All work in Debug Mode but no In Compile Mode

Post by Blue »

netmaestro wrote:... if that's not it then I don't know what is the fuck.
This topic gets my vote for the funniest exchange of April 2015.
Fred and the Other Gods still give those monthly awards, right ?
PB Forums : Proof positive that 2 heads (or more...) are better than one :idea:
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: All work in Debug Mode but no In Compile Mode

Post by Dude »

What's with all the fucking swearing in this fucking thread?
Post Reply