UndefinedObject does not understand bMajorHashManual

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

UndefinedObject does not understand bMajorHashManual

Postby Ralf » Thu Nov 16, 2006 4:33 am

Hello All,

first, this Forum is a nice idea, thanks.:-)

Now my problem, the title is the error message too. Several customers become this error on several machines, not on all. But, i can't find any error in installation. And at me it works fine. Anyone any idea whats wrong?

Many thanks

Ralf

************ schnipp *********
UndefinedObject(Object)>>#doesNotUnderstand:
receiver = nil
arg1 = Message (#bMajorHashManual, ())
WkAxisGrids>>#majorHashStyle
receiver = a WkAxisGrids
WkSelectableGraphContext(WkGraphContext)>>#hideGrid
receiver = a WkSelectableGraphContext
temp1 = a WkAxisGrids
temp2 = nil
WkSelectableGraphContext(WkGraphContext)>>#showGrid:
receiver = a WkSelectableGraphContext
arg1 = false
Wk3dGraphWidget(WkAbstractGraphWidget)>>#showGrid:
receiver = Wk3dGraphWidget(graphik)
arg1 = false
IfbDiagrammManager class>>#setMiscUserOptionsForPart:forSymbol:
receiver = IfbDiagrammManager
arg1 = Wk3dGraphWidget(graphik)
************** schnapp *************
Ralf
 
Posts: 41
Joined: Thu Nov 16, 2006 4:18 am

Re: UndefinedObject does not understand bMajorHashManual

Postby marten » Thu Nov 16, 2006 12:55 pm

Ralf wrote:Hello All,

first, this Forum is a nice idea, thanks.:-)

Now my problem, the title is the error message too. Several customers become this error on several machines, not on all. But, i can't find any error in installation. And at me it works fine. Anyone any idea whats wrong?

Many thanks

Ralf

************ schnipp *********
UndefinedObject(Object)>>#doesNotUnderstand:
receiver = nil
arg1 = Message (#bMajorHashManual, ())
WkAxisGrids>>#majorHashStyle
receiver = a WkAxisGrids


Why not look at method "majorHashStyle" and look for the senders of bMajorHashManual and then you know, which object is nil ... and perhaps
this will give you a hint.

Marten
marten
[|]
 
Posts: 641
Joined: Sat Oct 14, 2006 7:10 am
Location: Hamburg - Germany

Postby Ralf » Fri Nov 17, 2006 4:55 am

so far so good. The problem is, the bMajorhashStyle will not initialized, but i don't know why. For me, it looks like good, and it's not possible to debug at the customer. I have hope, anyone has the same problem and know what I must do to solve it.
Ralf
 
Posts: 41
Joined: Thu Nov 16, 2006 4:18 am

UndefinedObject does not understand bMajorHashManual

Postby solveig » Mon Nov 20, 2006 9:37 am

Ralf:

This looks like it is a part of WidgetKit/BusinessGraphics. Have you checked to make sure the DLL is present and on the user's path? Is the library open?

Solveig
solveig
Moderator
 
Posts: 57
Joined: Tue Oct 17, 2006 6:30 am

Re: UndefinedObject does not understand bMajorHashManual

Postby Ralf » Thu Nov 23, 2006 6:32 am

solveig wrote:Ralf:

This looks like it is a part of WidgetKit/BusinessGraphics. Have you checked to make sure the DLL is present and on the user's path? Is the library open?

Solveig



ok, I will test it. Thanks:-)
Ralf
 
Posts: 41
Joined: Thu Nov 16, 2006 4:18 am

Postby Ralf » Mon Dec 11, 2006 10:04 am

so, I have found a part of the problem, but it is not solved.
here the way I have found, i'm not sure where the problem is

the error come from here:

WkAxisGrids>>majorHashStyle

"Answer the major hash style. Valid values are
0 noGrids
1 normal grid lines
2 'inner' ticks only
3 'outer' ticks only
4 'spanner' (inner and outer) ticks only
5 grids with outer ticks (extended grids
-1 use automatic settings (valid for X, Y1 and Y2 axis only)"

self isIndependentAxis
ifTrue: [^info nMajorHashStyle].
^info bMajorHashManual asBoolean
ifTrue: [info nMajorHashStyle] "info is nil! how?"
ifFalse: [-1]

info will not initialized

WkAxisGrids>>getInfo


"Private -
Get the attributes of the axis grid lines.
If the attributes cannot be located in the graph, return nil."

| result class ptr axis|
class := self isIndependentAxis
ifTrue: [WkGridLinesOrdInfo]
ifFalse: [WkGridLinesInfo].
axis := class new.
result := GetGraphAttr
callWith: (graphContext asParameter ifNil: [^nil]) "asParameter will return nil, how?"
with: GraphLayer
with: O5dBackground
with: NullSeriesid
with: NullGroupid
with: self gridCode
with: (ptr := axis asPointer) asAddressParameter.
"info will never set"
info := class fromPointer: ptr.
ptr free.
^result == 1
ifTrue: [info]
ifFalse: [nil]

an now look here

WkGraphContext>>initialize
"Private"

super initialize.
autoSizeFonts := false.
[gpGraph := AllocGraphPtr call]
when: ExError
do: [:sig |
gpGraph := nil.
sig exitWith: nil].
gpGraph isNil ifTrue: [^self].
areaElement := WkAreaElement on: self.
textElement := WkTextElement on: self.
lineElement := WkLineElement on: self.
[self initDataCallbacks.
self loadDefaultTemplate "throws an exception: general protection fault, i don't no!"]
when: ExError
do: [:sig |
gpGraph := nil. "in error block the value becomes nil "
sig exitWith: nil]

WkGraphContext>>loadDefaultTemplate

"Private: Load the default template file which contains a sample look
with no data."

(self templateFileExists: self defaultTdcFile) "the file will not found, no path, nothing, only a filename!"
ifTrue: [self basicReadFrom: self defaultTdcFile]
ifFalse: [self fromBytes: self defaultGraphContextStructure]. "this will cause the error, an general protection fault"
self
subTitle: 'Instantiations, Inc., Smalltalk Systems Division';
footnote: 'Portland, Oregon'.

the behavior is not ever so, but many times. Is it possible, that the dll has an error or after a time the dll is wrong or is a part of memory for the dll is override with wrong code?
Ralf
 
Posts: 41
Joined: Thu Nov 16, 2006 4:18 am

Postby solveig » Tue Dec 12, 2006 7:20 am

Ralf:

The tdc file is used as a template for initializing attributes of a generic graph.

It must be in the working directory (e.g. image700). It's name should be 'default.tdc' If it is not, you will get a walkback like the one you posted.

Solveig
solveig
Moderator
 
Posts: 57
Joined: Tue Oct 17, 2006 6:30 am

Re: UndefinedObject does not understand bMajorHashManual

Postby dmacqueen » Wed Mar 11, 2009 2:59 am

I got this error yesterday after installing JWARS at *&%#&#@ for a training class. I created a student user in XP, and got this error when trying to run the simulation. The solution was to make the student user a member of the Power Users group in XP. The account evidently did not have enough permissions as a regular user.

Donald [|]
dmacqueen
[|]
 
Posts: 27
Joined: Fri Nov 02, 2007 3:40 pm


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: No registered users and 1 guest