Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Only writes to a file when in debug

0 views
Skip to first unread message

jny0

unread,
Aug 3, 2009, 8:39:11 AM8/3/09
to
Hi,

I've got a problme where code which two weeks ago wrote to a file
perfectly well, will now only do so if I step through the code in
debug. I've been advised that it may be the result of assert
statements, but this key word does not appear in my code anywhere. It
seems more likely that I've changed something in the IDE, as none of
my file writing code seems to work now. I'm using NetBans 6.1. Can
anyone help?

Regards
JNY0

jny0

unread,
Aug 3, 2009, 2:05:06 PM8/3/09
to
Just downloaded a new version of NetBeans, and the problem seems to be
sorted. Must have been a config setting I changed at some point.
I've searched, but can find no reference to it?

At least the problem's sorted.

Cheers,
JNY0

Roedy Green

unread,
Aug 3, 2009, 3:27:32 PM8/3/09
to
On Mon, 3 Aug 2009 05:39:11 -0700 (PDT), jny0 <jn...@hotmail.com>
wrote, quoted or indirectly quoted someone who said :

>
>I've got a problme where code which two weeks ago wrote to a file
>perfectly well, will now only do so if I step through the code in
>debug.

This advice won't help you now, but it will help you in future avoid
this pickle. Set up a Subversion server, either on your own machine
or rent one for about $6 a month, e.g. http://wush.net This saves you
the learning curve needed to set up the server, and it also provides
offsite backup.

http://mindprod.com/jgloss/subversion.html
http://mindprod.com/jgloss/versioncontrol.html

Then, periodically check in your code to the Subversion server.

If ever your code stops working, you can get a diff of the code now vs
any time in the past. This will help you figure out what you changed
that made it stop working.

All my code is publicly available that way. Anyone curious can examine
the history of changes, or see exactly what I changed recently.
see http://mindprod.com/jgloss/products.html


--
Roedy Green Canadian Mind Products
http://mindprod.com

"Patriotism is fierce as a fever, pitiless as the grave, blind as a stone, and as irrational as a headless hen."
~ Ambrose Bierce (born: 1842-06-24 died: 1914 at age: 71)

0 new messages