IonicWind Software

IWBasic => GUI Central => Topic started by: LarryMc on August 22, 2008, 04:06:53 PM

Title: Yet Another Odd Problem
Post by: LarryMc on August 22, 2008, 04:06:53 PM
This might be another one I should have already known about.

Ever since I've been programming I have used embedded print statements for debugging puposes.

With Ebasic I have continued that process with great results by opening the console window in my window based programs.

I'm currently working on a project with multiple source files much like I've done in the past.

A portion of the program got complicated enough to insert some print statements to find a flaw.

The print statement didn't print anything to the console window.  I proved that the code was executing by inserting a messagebox in place of the print statement and it worked.

After much searching I found that the console print quit at the point that I printed text directly to a window using the window handle.
Console print statement executed before that line of code worked by any after that line of code would not.

Removing the print to window statement allowed print to console work after that line.

Tried it in another program with the same result.


Larry



Title: Re: Yet Another Odd Problem
Post by: Ionic Wind Support Team on August 22, 2008, 04:21:37 PM
Its an old feature that allowed you to specify the window once. 

print w1, ...
print ...
print ...

Don't have a workaround for you at the moment, try using debugprint instead, or use printf from the C library.

Paul.