nilobjectexception (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: TabPanel within TabPanel
Next thread: command key symbol on bottons


[OT] How to compile Carbon Shared Library w/ProjectBuilder?   -   Hadley, Joshua
  nilobjectexception   -   Dewey Howell
   Re: nilobjectexception   -   Frank Bitterlich
   Re: nilobjectexception   -   Lars Jensen
    Re: nilobjectexception   -   Dewey Howell
    Re: nilobjectexception   -   Carl Adler
     Re: nilobjectexception   -   Joseph J. Strout
     Re: nilobjectexception   -   Will Leshner

nilobjectexception
Date: 12.12.02 03:57 (Wed, 11 Dec 2002 18:57:02 -0800)
From: Dewey Howell
I am writing a pretty simple program, but my code is admittedly rather
clunky. The program works fine on OSX, and Windows 98 on virtualPC.
But on windows 2000 and XP I get a nilobjectexception before any
windows even open. The XP exception said it occurred at:

c0000006 @ 004b653

Does this information help me?

All the program does, I think, before the exception is setup some
variables. I suspect maybe there is some sort of memory management
issue because I do initialize some large arrays...

Any thoughts would be greatly appreciated.

Thanks,
Dewey

---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>

Unsubscribe:
<mailto:<email address removed>>

Subscribe to the digest:
<mailto:<email address removed>>

Re: nilobjectexception
Date: 12.12.02 15:48 (Thu, 12 Dec 2002 15:48:00 +0100)
From: Frank Bitterlich
Hi Dewey,

Dewey Howell wrote:
>
> I am writing a pretty simple program, but my code is admittedly rather
> clunky. The program works fine on OSX, and Windows 98 on virtualPC.
> But on windows 2000 and XP I get a nilobjectexception before any
> windows even open. The XP exception said it occurred at:
>
> c0000006 @ 004b653
>
> Does this information help me?

Nope, unfortunately it doesn't.

It's hard work to find the source of such problems on Windows. The
approach I usually take is to remove more and more code until the
problem goes away. I'd start with all Open events. Once you've got the
method/handler that causes the crash, either write progress info to some
kind of debug console (see MongoToDCON or similar), or continue with the
cut-until-it-disappears procedure.

Eventually you will be able to track it down to one line of code.
Sometimes it's a pluging that causes havoc, sometimes it's an internal
RB thing (I've seen TextConverters cause much grief in that respect). In
most cases you'll be able to find a workaround.

I think when the Windows IDE is available, debugging windows
applications will become much easier.

Cheers,
Frank+++

Re: nilobjectexception
Date: 12.12.02 07:30 (Thu, 12 Dec 2002 01:30:04 -0500)
From: Lars Jensen
> The program works fine on OSX, and Windows 98 on virtualPC.
> But on windows 2000 and XP I get a nilobjectexception before any
> windows even open.

Are you running it on VPC from a shared folder? That is known to cause
startup problems (though I don't recall if it was that exact problem).

lj

---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>

Unsubscribe:
<mailto:<email address removed>>

Subscribe to the digest:
<mailto:<email address removed>>

Re: nilobjectexception
Date: 12.12.02 14:24 (Thu, 12 Dec 2002 05:24:52 -0800)
From: Dewey Howell

Nope. The windows 2000 and XP that don't work are on PC's at work. I
have tried multiple machines at my work and my friends' houses. The
exception occurs on all of them.

On Wednesday, December 11, 2002, at 10:30 PM, Lars Jensen wrote:

>> The program works fine on OSX, and Windows 98 on virtualPC.
>> But on windows 2000 and XP I get a nilobjectexception before any
>> windows even open.
>
> Are you running it on VPC from a shared folder? That is known to cause
> startup problems (though I don't recall if it was that exact problem).
>
> lj
>
> ---
> A searchable archive of this list is available at:
> <http://dbserver.realsoftware.com/KBDB/search.php>
> Unsubscribe:
> <mailto:<email address removed>>
> Subscribe to the digest:
> <mailto:<email address removed>>

---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>

Unsubscribe:
<mailto:<email address removed>>

Subscribe to the digest:
<mailto:<email address removed>>

Re: nilobjectexception
Date: 12.12.02 15:11 (Thu, 12 Dec 2002 09:11:47 -0500)
From: Carl Adler
I find lots of things that work on 98 and ME but give a nilobject exception
on 2000 and XP upon opening, generally I can find a workaround. It would be
nice if you could use #if to target specific Window's OSs. Does anyone else
agree with this.
Carl

> Nope. The windows 2000 and XP that don't work are on PC's at work. I
> have tried multiple machines at my work and my friends' houses. The
> exception occurs on all of them.
>
> On Wednesday, December 11, 2002, at 10:30 PM, Lars Jensen wrote:
>
>>> The program works fine on OSX, and Windows 98 on virtualPC.
>>> But on windows 2000 and XP I get a nilobjectexception before any
>>> windows even open.
>>
>> Are you running it on VPC from a shared folder? That is known to cause
>> startup problems (though I don't recall if it was that exact problem).
>>
>> lj

---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>

Unsubscribe:
<mailto:<email address removed>>

Subscribe to the digest:
<mailto:<email address removed>>

Re: nilobjectexception
Date: 12.12.02 16:12 (Thu, 12 Dec 2002 07:12:38 -0800)
From: Joseph J. Strout
At 9:11 AM -0500 12/12/02, Carl Adler wrote:

>I find lots of things that work on 98 and ME but give a nilobject exception
>on 2000 and XP upon opening, generally I can find a workaround. It would be
>nice if you could use #if to target specific Window's OSs. Does anyone else
>agree with this.

I don't; #if is a compile-time switch, but what OS your Win32 app
happens to be running on is a run-time condition. For #if to work
with that, it would have to tie in with the predicting-the-future
feature, which we haven't managed to get working yet. (It would also
need the multiple-universes feature, since one compile may be run by
one person on Win98 and another person on XP... it'd need to act
something like the state of an atomic particle, that is essentially
undefined until measured by an observer.) ;)

Till then, you'll need to do an ordinary run-time check, using "if"
rather than "#if".

Cheers,
- Joe

Re: nilobjectexception
Date: 12.12.02 16:14 (Thu, 12 Dec 2002 07:14:02 -0800)
From: Will Leshner
You can. Define a constant boolean for WinXP and set it to true if you
are building a Windows XP version of your app. Then, when you want to
have code that is only to run in the Windows XP version, bracket it
with:

#if WinXP
#endif

You'll have to build separate versions of your app, but you'd have to
do that anyway. There isn't anything special about TargetWin32 and
TargetMacOS, except that RB sets their values for us.

On Thursday, December 12, 2002, at 06:11 AM, Carl Adler wrote:

> I find lots of things that work on 98 and ME but give a nilobject
> exception
> on 2000 and XP upon opening, generally I can find a workaround. It
> would be
> nice if you could use #if to target specific Window's OSs. Does anyone
> else
> agree with this.
> Carl


---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>

Unsubscribe:
<mailto:<email address removed>>

Subscribe to the digest:
<mailto:<email address removed>>